Author Topic: Recommendations for program to replace/append multi value metadata ?  (Read 89 times)

alec.tron

  • Full Member
  • ***
  • Posts: 200
Heya,
one workflow I have yet to find a good solution for that neither Musicbee nor Foobar can do (afaik - MB: http://getmusicbee.com/forum/index.php?topic=20478.0 , For foobar I use foo_masstagger for similar things, which works mostly, but things get tricky/impossible when it comes to multi value metadata on flac files with that as well...).

I often find myself wanting to append/remove/re-order multi-value metadata; mostly in Genre or Artist field...
For a practical example - I have (on multiple files, lets's say 2 mp3s w TCOn field, queried through mutagen python module):
Genre file 1:
TCON': TCON(encoding=<Encoding.LATIN1: 0>, text=[u'Metal', u'Drum n Bass', u'Dubstep'])
Genre file 2:
TCON': TCON(encoding=<Encoding.LATIN1: 0>, text=[u'Punk', u'Drum n Bass'])


There's 2 operations I'd love to do (ideally on multiple files, which might have different and/or differently ordered tags, which complicates things further...):

1)
append value at specific position.
eg:
In the above case, I would like to append 'Rock' at position 1.
So the result would be:
Genre file 1:
TCON': TCON(encoding=<Encoding.LATIN1: 0>, text=[u'Rock', u'Metal', u'Drum n Bass', u'Dubstep'])
Genre file 2:
TCON': TCON(encoding=<Encoding.LATIN1: 0>, text=[u'Rock', u'Punk', u'Drum n Bass'])

2)
Search for a value, and inject/remove another value:
eg:
In the above case, I would like to replace/add 'Breakcore' behind 'Drum n Bass'.
So the result would be:
Genre file 1:
TCON': TCON(encoding=<Encoding.LATIN1: 0>, text=[u'Rock', u'Metal', u'Drum n Bass', u'Breakcore', u'Dubstep'])
Genre file 2:
TCON': TCON(encoding=<Encoding.LATIN1: 0>, text=[u'Rock', u'Punk', u'Drum n Bass', u'Breakcore'])


I haven't tried mp3tag and some of the other mostly mp3 editors over the last years - does anyone know of one that can do the above (on multiple files [on mp3 = fake multi value fields, and flac = true multi value fields] - which might have different tags/ordered tags even...?)

Cheers.
c.
Last Edit: January 07, 2017, 04:37:49 AM by alec.tron

alec.tron

  • Full Member
  • ***
  • Posts: 200
One of the foobar component devs had a good way & syntax to use foobars' auto-fill dialogue for correct multi-value metadata search & replace handling, in case anyone is interested to do the same.
 
i.e., use :
"Other"
and:
$replace(%genre%,', ','; ','genreString','genreString; appended genreString')

this injects "appended genreString" after "genreString" correctly as a multi value tag into mp3s as well as flac files.

c.