-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Ignore list for scrub plugin #1515
Conversation
mf = mediafile.MediaFile(path, config['id3v23'].get(bool)) | ||
for tag, value in self._preservedTags.items(): | ||
if value: | ||
self._log.info(u'restoring {0} = {1}'.format(tag, value)) |
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.
Something is wrong on this line. Not sure what it is, but if I remove this all my tests were successful.
http://pastebin.com/QxFuXeTY
Thanks for looking into this. The implementation seems fine, but I'm a little uncertain still about the purpose—are we sure that this is the right way to facilitate interaction with your track-year plugin? In general, I'm a bit worried that users will see this configuration option and be tempted to use it instead of |
I'm inclined to agree that this change is solving the wrong problem. It's adding complexity to the |
I would love to see that as new feature (even if it would be undocumented). At the moment i'm using the
Another long term possibility would be merging |
I know the current landscape is pretty confusing, and it's true that So while it's possible to do something like this, it's important to keep in mind that there's no way around using format-specific tag names and details (as this PR does). Another way around this is to use extensible MediaFile fields to actually reflect these extra tags in the database, which will naturally preserve their value—a clean way to do that might be more complete solution to this problem. (Not to close the door on this proposal here, which is certainly an easier hack to implement.) |
Thank you for this detailed answer... but let me ask a question - How would you deal with this problem?:
Would this be possible via Actuallly i am patching the Another nice thing would be, that See https://superuser.com/questions/1208273/add-new-and-non-defined-metadata-to-a-mp4-file for details. |
Indeed, that's what a feature like this would be for. But it sounds like you actually want to preserve the data in that field—including when doing a
I'm referring to this feature available to plugins, which admittedly is pretty hacky by itself. But it does what you want: extend beets' ability to read and write a new tag. Separately, however, I'm intrigued by the fact that you mentioned that this comes from an iTunes field. Back when we were constructing our set of built-in fields, we also tested with what iTunes labeled as "grouping," and came up with this tag mapping: That is, the ID3 frame is |
Well, this is getting interesting. Thank you very much for pointing out the MediaFile extension possibility, perhaps this would make things a lot easier without having to hack the TLDR: If you change the "Grouping" on iTunes, it changes Should I add an issue for this? More information: I downloaded the files To ensure, that this is not a windows specific problem, i changed the grouping for the same files on my Mac with iTunes, same result with Using Mp3tag v.2.9.1 (https://www.mp3tag.de/en/index.html) shows, that following Mp3tag-internal tags have changed:
Regarding to the mapping table on https://help.mp3tag.de/main_tags.html:
See the attached files for details: itunes_grouping.zip |
Thanks for investigating! Here are some things I found:
Seems like something we need to address! I've filed an issue at beetbox/mediafile#15. |
Nice... thank you. I'll treat this as fixed for now and keep track of the other issue... |
Regarding the original PR from four years ago, I do need to admit that it is a workaround for an entirely different problem. I'm happy that it fostered more discussions, though. |
For me fixing issue beetbox/mediafile#15 does resolve the main problem. If I'm also happy that the pull request exists, because it made many things much clearer. But I still think, that the cleanest solution would be to merge the
What do you think about this idea? |
Hmm… I get the idea here to merge these two things, but it sort of seems like your idea for a |
Good point... well, in my opinion The problem is, that After your comment I really think these two approaches are difficult to merge.
But I'm wasting your time... Thank you for the kind and instructive discussion... |
Closing since the original author has abandoned and it's current implementation won't get merged. Any further discussion of the issue or feature request should be directed to #1514 |
I would like to propose a first attempt to the issues described in #1514 and #571. The idea is to have an additional config parameter for the
scrub
plugin which describes a list of tags that should not be scrubbed duringimport
and otherwrite
operations.Generally, the approach is identical to how we currently preserve the album art on a manual
scrub
execution. Save listed tags → clear tag frame → restore preserved tags.I am not sure if the code invokes unwanted side effects, but I'd like to throw it out there for further discussion. Presumably, we'd be able to extend the used functions to cover the already implemented restoration of album art as well.