Add support for multi-valued genre tag - #4751
Conversation
|
Hi, thanks for your work, i want to use this with lastgenre and vorbis\id3v2.4 tags, how do i proceed? Simply compiling from your branch and running lastgenre doesn't work |
More work needs to be done to integrate lastgenre with multi-tags. That plugin is written on the assumption of single tags |
+1 |
Sounds like it naively overwrites it with whatever the current genre is versus doing a merge (i.e. genre1, genre2, genre3), is that right? The genres multi-tag points to the single-tag form. So once it's technically a multi in the database, it should be much easier to do a merge since you're dealing with a list versus a delimited string. I think lastgenre would also need support to either use multis are continue as delimited, I'm sure many downstream apps depend on that form |
|
@jmbannon after putting some debug prints into the validation function in the lastgenre plugin, my assumption proved right. This should make clear what is happening. Trying to run on one track (set in configuration to track mode) and matching for track, not album (-A) outputs this: Prior to the lastgenre run, genre was "Glitch, Techno". It seems the plugin does not divide the current genre into single entities before checking.
So the actual bug in short is: |
|
Is there anything left to do here @jmbannon except fixing the conflicts? I am asking since in a couple of days a "black formatter thing" will be merged and will most probably produce a hell lot of more conflicts. So just giving a heads up. If we are quick we could get this one through before that. :-) |
|
I would love this feature to be added and will be happy to test things out once the docs are added. |
|
This branch needs a lot of work. I haven't forgotten about it, have just been super busy. We could probably close it and I'll make a new one that's rebased on latest master when I get to it |
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
keep open |
|
It's probably okay to close. I will reopen it properly rebased off master when I get the time - haven't forgotten about it 🙂 |
Description
#505
Adds support for setting the
genretag to be either a single or multi. Follow-up to #4743And somewhat related to #4582 (comment), when writing unit tests, I noticed that tags that have separate names for both their single and multi variant in
Mediafile(albumtype/albumtypes,genre/genres), there was conflicts on which took precedence when writing the tag.This PR addresses that via introducing mapping them with the
_single_to_multi_fieldsdict, and writing case-logic to decide what to write when given differing single/multi valuesTo Do
docs/to describe it.)docs/changelog.rstnear the top of the document.)