Repository navigation
Conversation
When download() gave several parts of an item one friendly filename, only the last file was kept on disk. Versions now get " - 1", " - 2" and so on, and the parts of a split version get " - pt1", " - pt2". An item with one version and one part keeps its current name, and keep_original_name is untouched. Downloading with transcode options also no longer raises ValueError when the item reloads while its filename is built.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When
download()gave several parts of an item one friendly filename, only the last file survived. Filenames now get- 1,- 2for several versions, and- pt1,- pt2for split parts. Other names are unchanged.Numbers, not labels, since two versions can share a resolution and bitrate. The
MediaPartrework from the issue is left out. Transcode downloads no longer raise when the item reloads while its filename is built.Tested on a real Plex 1.43.6 server built with
tools/plex-bootstraptest.py(Photos added by hand: the script's Photos step fails on 1.43.6). Master and this change fail the same 27 suite tests. I then gave one movie a second version and split another in two; master left one file per movie, this change two. The bootstrap script makes no such movies, so the five new tests are mocked; four fail on master. Claimed server tests were not run.Fixes #1208
Type of change
Checklist: