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
When a downloadable item (e.g. Episode) is available in multiple quality/encoding options, calling download() is supposed to download all of them. However, if keep_original_filenames=False (the default), each Media item gets downloaded to the same friendly name, with subsequent downloads overwriting the previous ones. All the data is transferred, but only one remains on the file system after the function returns.
If keep_original_filenames=True, all files are downloaded because the target filenames are (likely to be) different.
Only one media is downloaded, and I can select which one it is
Maybe by passing arguments into .download()?
Maybe by using episode.media[0].download(), which doesn't currently exist?
All media options are downloaded with different names.
Additional Context
Appending something like "[4K-20Mbps]" or "[1080p-8Mbps]" to the friendly name when a discriminator is needed would be a nice touch, but even "-0", "-1", etc. would keep the overwrite from happening.
Operating System and Version
Ubuntu 22.04 on WSL
Plex Media Server Version
1.31.2.6783
Python Version
3.10.6
PlexAPI Version
4.15.0
The text was updated successfully, but these errors were encountered:
My ideas since the current download method just loops over all parts.
Move the logic in the download() method to MediaPart to allow downloading a single part.
Add a download() method to Media that calls the method in MediaPart to downloads all parts in that media. Add part discriminators (maybe -ptX to follow Plex's convention?) where necessary.
Update the base download() method that calls the method in Media to download all parts in all media. Add media discriminators (maybe resolution and bitrate to match Plex's version dialogue?) where necessary (this would need to work in conjuntion with the part discriminator).
Describe the Bug
When a downloadable item (e.g. Episode) is available in multiple quality/encoding options, calling
download()
is supposed to download all of them. However, ifkeep_original_filenames=False
(the default), each Media item gets downloaded to the same friendly name, with subsequent downloads overwriting the previous ones. All the data is transferred, but only one remains on the file system after the function returns.If
keep_original_filenames=True
, all files are downloaded because the target filenames are (likely to be) different.Code Snippets
Expected Behavior
One or both of:
.download()
?episode.media[0].download()
, which doesn't currently exist?Additional Context
Appending something like "[4K-20Mbps]" or "[1080p-8Mbps]" to the friendly name when a discriminator is needed would be a nice touch, but even "-0", "-1", etc. would keep the overwrite from happening.
Operating System and Version
Ubuntu 22.04 on WSL
Plex Media Server Version
1.31.2.6783
Python Version
3.10.6
PlexAPI Version
4.15.0
The text was updated successfully, but these errors were encountered: