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

Multiple delimiters for splitting artist field #85

Open
dakrk opened this issue Dec 25, 2022 · 0 comments
Open

Multiple delimiters for splitting artist field #85

dakrk opened this issue Dec 25, 2022 · 0 comments

Comments

@dakrk
Copy link

dakrk commented Dec 25, 2022

Currently, the artists fields are only split by , . This is unsuitable for files using Vorbis comments with multiple Artist tags, as mpv will concatenate them together using a semicolon as a delimiter, like so: Artist 1;Artist 2;Artist 3.
Some MP3s may also use a slash as a delimiter, like so: Artist 1/Artist 2.
As mpv-mpris only handles a comma with a trailing space as a delimiter, none of these are split and programs using MPRIS could treat this as one huge artist field.
Unfortunately from the looks of things, libmpv doesn't provide a method of returning this as an array, and there's the possibility that some artist fields will have multiple sequences (possible situation: Tyler, The Creator;Artist 2) which will make this even more of a pain.
Perhaps different file types could have a delimiter priority.

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

No branches or pull requests

1 participant