TMSU icon indicating copy to clipboard operation
TMSU copied to clipboard

Provide a simple way to remove all values of a tag for specific files

Open Srogozins opened this issue 8 years ago • 1 comments

Let's say I have a file song.mp3 and I tag it in following way: $ tmsu tag song.mp3 --tags "genre=metal genre=country"

Later I decide that those two values don't really fit it and I want to use a different one and drop both of them. Or that the tag 'genre' doesn't apply to the file at all and I need to remove it alltogether, but leave for other files. Either way, I want to remove the tag 'genre' from file song.mp3 with all of its values. I'd expect something like this to work: $ tmsu untag song.mp3 genre tmsu: ./song.mp3: file is not tagged 'genre'.

In order to get the desired effect, I need to manually remove each tag-value pair: $ tmsu untag song.mp3 genre=country $ tmsu untag song.mp3 genre=metal

Having to check those values and remove them one by one when scripting feels like a waste as well.

Srogozins avatar Jul 03 '17 23:07 Srogozins

I guess something like tmsu untag genre=*.

On 4 Jul 2017 12:00 am, "Staņislavs Rogozins" [email protected] wrote:

Let's say I have a file song.mp3 and I tag it in following way: $ tmsu tag song.mp3 --tags "genre=metal genre=country"

Later I decide that those two values don't really fit it and I want to use a different one and drop both of them. Or that the tag 'genre' doesn't apply to the file at all and I need to remove it alltogether, but leave for other files. Either way, I want to remove the tag 'genre' from file song.mp3 with all of its values. I'd expect something like this to work: $ tmsu untag song.mp3 genre tmsu: ./song.mp3: file is not tagged 'genre'.

In order to get the desired effect, I need to manually remove each tag-value pair: $ tmsu untag song.mp3 genre=country $ tmsu untag song.mp3 genre=metal

Having to check those values and remove them one by one when scripting feels like a waste as well.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/oniony/TMSU/issues/125, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAXBwB9kHGtkUotnAyns2_cpokB8PeUks5sKXJ-gaJpZM4OMviC .

oniony avatar Jul 03 '17 23:07 oniony