-
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
rewrite: Clarify the scope of the wide-ranging effects of the plugin, which can sometimes include modifying actual metadata #2786
Comments
I took a quick glance at the plugin code, and I believe that the documentation is rather misleading. The way it seems to work, it does indeed not modify the database initially (not entirely sure about the tags). However the full scope of the rewriting is not well controlled. For example, the database entry will be rewritten if the field is read (this retrieves the modified version) and then stored back without further changes. I guess that would happen when using the I'm not sure how to deal with this (I also don't use the plugin, so I'm not exactly familiar with its usecases), but the current behaviour does not appear very sensible to me, given the analysis above is correct (which I did not test). I guess the plugin should really somehow hook into the template formatting process, and not modify field retrieval in general. |
Indeed! That's a good summary of the issues, @wisp3rwind. The plugin doesn't just rewrite fields for paths; it rewrites them for all field lookups in beets. That is a pretty big hammer. If anyone's interested in digging deeper and finding a more limited way to accomplish something similar, I'd be happy to help out. |
I'm not a Python expert, but I wrote a simple plug-in to manage this situation. Probably can be done better, but this is the code I'm using at the moment:
in the config file:
Maybe something similar can be added to default plugins... |
That’s a cool idea! It’s a nice, compact plugin that would fit in as a |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue 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. |
It seems that not a lot has changed about this. The documentation is still misleading, and while I like how the rewrite plugin works right now for most use-cases, it would be good to have an alternative plugin that does what's specified in the docs. For example, I have recently changed my Shipping something like the above plugin would be handy in this case. |
Why is this one closed? Situation with plugin behaviour/docs is unchanged. |
The main reason is that we didn't settle concretely on a path forward. Maybe we should make this specifically about fixing the docs and reopen it? |
I think that would be a good idea. What about the substitute plugin that was suggested above? Do you think that would make sense to have a PR opened for it, if @fdaniele85 agrees? |
I agree |
That would be great, we will have a plugin that does what is advertised finally 😀 |
in the plugin docs as was discovered in beetbox#2786 (Metadata being modified).
in the plugin docs as was discovered in beetbox#2786 (Metadata being modified).
Hi guys. In the documentation of rewrite plugin it is written that "Note that this plugin only applies to templating; it does not modify files' metadata tags or the values tracked by beets' library database.", but it seems that it modifies the tags.
Without rewrite plugin I import an album by "Buckethead & Friends" and I obtain
But enabling the rewrite plugin with this config file:
I obtain
And inspecting the tags with easytag, the albumartist is simply Buckethead. I would like to maintain the correct tags, but change the saving path.
Thanks.
The text was updated successfully, but these errors were encountered: