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
PICARD-700: Support albumartists tag #553
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,7 @@ class ASFFile(File): | |
'djmixer': 'WM/DJMixer', | ||
'mixer': 'WM/Mixer', | ||
'artists': 'WM/ARTISTS', | ||
'albumartists': 'WM/ALBUMARTISTS', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar question, what's the difference between "albumartist" and "albumartists"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lazka same as artist and artists. artist is a string, artists is a multi valued field. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. eg Artist: Chakuza & RAF Camora |
||
'work': 'WM/Work', | ||
'website': 'WM/AuthorURL', | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,7 @@ def artist_credit_to_metadata(node, m, release=False): | |
m["musicbrainz_albumartistid"] = ids | ||
m["albumartist"] = artist | ||
m["albumartistsort"] = artistsort | ||
m["~albumartists"] = artists | ||
m["albumartists"] = artists | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we'll want to keep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the '~' simple means its a 'hidden/protected' tag and is appended to hide it from UI/saving from file tags. As for it's use in scripting, we can update the documentation maybe? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I created ~albumartists. I would suggest that we dispose of this now, and instead create update code that replaces It might break plugins, but with the exception of my |
||
m["~albumartists_sort"] = artistssort | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about this one? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I created this one too. See also I suggest we keep these both as hidden and not saved to tags. |
||
else: | ||
m["musicbrainz_artistid"] = ids | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. I wonder why this is like this, when it's
'artistsort': 'WM/ArtistSortOrder',
further up forartistsort
. Maybe'artists': 'WM/Artists',
would have been better. Does mutagen use all-uppercase? :/There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between "artist" and "artists"? mutagen properly supports multiple "Author" values since 1.26.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
artists is simply a multi valued field with all the artists, artist includes things like 'feat.' etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, we don't have something like that in quodlibet. We have a "artist" tag containing a list of artists and save it in "Author" as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we have had some discussion on this see PICARD-586
I think @zas @mwiencek @mineo should be consulted since this is a big change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See Jaudiotagger Tag Mappings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can;t remember whether tags in ASF format are case independent or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little bit of internet research suggests that in WMP 11 and below they were case insensitive, but in WMP they are case sensitive. I suspect that Jaikoz created the tag first and we then adopted it with the case defined, but that may be wrong. Regardless, the case is now fixed by historical usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jaudiotagger tag mappings doc is out of date actually best to use the spreadsheet link below, the jaudiotagger source code on the songkong help http://www.jthink.net/songkong/help/help.html#d5e2051for uptodate mappings