-
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
Formatted modify #488
Comments
It's becoming increasingly clear that people would like to apply format-like changes automatically to tags as well as manually, so this ticket should definitely include that. As proposed in #1310, it would even be useful to apply transformations globally to all tags. That is, rather than configuring every tag separately to lower-case its value with |
Another nice use case (especially if implemented as an import hook) would be to default a field to something else in case of an Unknown value, e.g.: |
Hi, following my recent mail, I've been thinking about this feature and I'll try to sum up how I see it : Formatted tag modification would be usable with the import and the modify command
where
When importing, it would set the tag to the specified templatized value. If a variable is used in the expression, it's value would be the value produced by the import process (i.e. either from the file or form auto-tagging ). It would also be possible to specify such transformation in the configuration file, with a plugin, to be applied to every import. A simple evolution of the (renamed) zero plugin is probably enough,
The only thing that does not fit (yet?) in this approach is the global pattern suggested by @sampsyo : it could be implemented with a Additionnal note on implementation : it could probably be done in Model.setitem (db.py) : this path is used in all the aforementioned use-cases and template evaluation is already available. |
Ok, I just made a first pull request (only for the modify use case) , but it seems so trivial that I'm wondering if I'm not missing something obvious here... |
Now I working on the import use case and I'm considering where the tag manipulation should happen (that is, when should we execute Any idea / comment on this ? |
+1, This would be really cool! |
About the commandline interface, I think it would be better if we don't have to write beet import /path/to/album *='lower,asciify' or --apply='lower,asciify' |
glad to see I'm not the only one maintaining lowercase tags here. indeed that would be 👍 for me. thanks! |
I'd also like modify to offer this capability to other plugins. For instance to allow the alternatives plugin (https://github.com/geigerzaehler/beets-alternatives) to put replace the artist field by the albumartist one for the mp3 players who sort the music tracks by the artist field. |
I would appreciate having a feature for assembling tags from content of existing tags. Use case for illustration: Album with some tracks where Musicbrainz returns several different artists for one album.
Template for this could be something like:
Tricky thing here is that this is not idempotent, applying the second transformation rule twice on an imported element would possibly yield different results (the rule adds the albumartist again). This transformation would be safe only during imports, on tag data coming from Musicbrainz or another external source. It may be most sane to have two distinct modes:
|
Hi, I came here reading #1310. It would be useful for beets to set the case for both filenames and tags; kid3 has this feature and in beets a global option for the user like: tag_format: lowercase/uppercase/capitalize with: would be perfect. |
Would certainly help with my issue.... https://discourse.beets.io/t/multiple-artist-i-just-want-the-first-one/416 |
Please add this feature to help with my issue: Wife has over 2000 tracks that we got out of google music before they shutdown and the artist tags are set to the name of the playlist in google music which is not correct. The title of each track has the artist name and I would like to extract the first portion of the title to serve as the artist name. Each title is formatted as follows:
|
Hi, what is the status of this feature? i need to copy the value of year tag onto original_year tag for many entries, seems that the formatted modify would be the way to go. or is there any other way to do that? |
There are a number of cool things we could do if the
modify
command supported templates in the value part. For example, you could put the Echo Nest liveness into the comments field like so:It might also be nice to expose these rewritings in an import hook also.
The text was updated successfully, but these errors were encountered: