Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iTunes: Permit duplicate playlist names by identifying playlists by id (rather than name) #11794

Merged
merged 3 commits into from
Aug 7, 2023

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Aug 6, 2023

This patches the iTunes feature to identify playlists by id rather than their name and updates the created TreeItems to also use the original, non-suffixed names (without ... #n). Given that the corresponding database column has a UNIQUE constraint, the suffixed name will still be used there for backwards compatibility/to avoid a schema change, but no longer presented in the UI.

Thus if the user e.g. has two playlists named A, they will now both be presented as A in the sidebar, rather than A and A #2, which generally looks cleaner since it mirrors the "original" naming of the playlists.

For comparison:

Before After
Screenshot 2023-08-06 at 23 53 08 Screenshot 2023-08-06 at 23 51 33

@fwcd
Copy link
Member Author

fwcd commented Aug 6, 2023

Side note: I am targeting 2.4 for this since it's a rather minor addition to the "new" iTunes feature in 2.4, feel free to comment on whether that's fine or if I should retarget to main.

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you for this nice addition.

@daschuer daschuer merged commit b4a40b8 into mixxxdj:2.4 Aug 7, 2023
@fwcd fwcd deleted the undisambiguated-itunes-treeitems branch August 7, 2023 11:19
@fwcd fwcd added the itunes label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants