Remove unwanted charchers from the start of tags/fields #4918
frankwoconnor
started this conversation in
General
Replies: 1 comment
-
Super helpful; thanks!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hope this is OK, not a question, but just sharing something helpful that I had been trying to do for a while.
I was looking to tidy up some fields by removing spaces or dashed from the start of a field.
Two things I didn't know.
So to remove all leading spaces in the field albumartist for all tracks use the command below:
beet modify albumartist='%right{$albumartist,-1}' albumartist::'^\s '
So to remove all leading '-' in the field albumartist for all tracks use the command below:
beet modify albumartist='%right{$albumartist,-1}' albumartist::'^- '
Hope this is useful to someone help, helped me out a lot.
Ps - running:
beets version 1.6.1
Python version 3.9.9
Beta Was this translation helpful? Give feedback.
All reactions