You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run it from the home folder of my server, it adds the poster folders to the same folder (''), overwriting them all so that only the last one is available at the end of the script's execution. If I run it in the library's folder, I get this error:
Traceback (most recent call last):
File "/home/calebsw83/plex/Movies/PlexPosterExport.py", line 71, in
runScript()
File "/home/calebsw83/plex/Movies/PlexPosterExport.py", line 43, in runScript
posterPath = download(baseurl + videoPoster, token, "poster.png", videoFolder)
File "/home/calebsw83/.local/lib/python3.10/site-packages/plexapi/utils.py", line 458, in download
os.makedirs(savepath, exist_ok=True)
File "/usr/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
not sure what I can do. I feel like I'm so close to getting it working but I just don't know what else to try.
The text was updated successfully, but these errors were encountered:
Replying to an old issue because I had the same problem; leaving it here for the next guy.
Found that the problem was that the script was searching for the path in a Windows format with a backslash (\) while I'm running my server on Linux which uses a forward slash (/).
I had to change line 40 from
videoFolder=videoPath.rpartition('\\')[0] +"\\"
to
videoFolder=videoPath.rpartition('/')[0]
Same has to be done on lines 50 and 64 for "shows".
If I run it from the home folder of my server, it adds the poster folders to the same folder (''), overwriting them all so that only the last one is available at the end of the script's execution. If I run it in the library's folder, I get this error:
Traceback (most recent call last):
File "/home/calebsw83/plex/Movies/PlexPosterExport.py", line 71, in
runScript()
File "/home/calebsw83/plex/Movies/PlexPosterExport.py", line 43, in runScript
posterPath = download(baseurl + videoPoster, token, "poster.png", videoFolder)
File "/home/calebsw83/.local/lib/python3.10/site-packages/plexapi/utils.py", line 458, in download
os.makedirs(savepath, exist_ok=True)
File "/usr/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
not sure what I can do. I feel like I'm so close to getting it working but I just don't know what else to try.
The text was updated successfully, but these errors were encountered: