Skip to content

Conversation

@shinji257
Copy link

Might not be the most elegant way but didn't see another option. Original code add the parent twice to the output template and failed to re-introduce the filename template portion that was stripped during the split. This adds that back and corrects the second joinpath() so it references that rather than the split. split renamed to path to indicate what it contains.

Might not be the most elegant way but didn't see another option.  Original code add the parent twice to the output template and failed to re-introduce the filename template portion that was stripped during the split.  This adds that back and corrects the second joinpath() so it references that rather than the split.  split renamed to path to indicate what it contains.
@Googolplexed0
Copy link

Implemented this in my fork as a one-liner:

if cls.get_split_album_discs():
            return str(PurePath(v).parent / 'Disc {disc_number}' / PurePath(v).name)

A bit cleaner but the same basic solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants