IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Multiple Values for Field Name (FLAC), dbpoweramp doesn't always create multiple Vorbis comments per xiph
d2b
post Jun 7 2012, 07:38
Post #1


Member


Group: Full Members
Posts: 30
Joined: 6-January 10
From: Nevada City, CA (USA)
Member No.: 11618
Mp3tag Version: 2.53



The recommended way to create Vorbis comments from a field that has multiple entries is as follows:

If there are two composers for a track, enter them in dbpoweramp like this:

Composer1; Composer2

The resulting Vorbis comments should be as follows:

COMPOSER=Composer1
COMPOSER=Composer2

This is done properly for the COMPOSER tag, like the above example.

However, for custom tags, like this one, only a single Vorbis comment is generated:

Entering this information for a custom tag named PERFORMER, like this:

Performer1; Performer2

results in this single Vorbis comment:

PERFORMER=Performer1; Performer2

instead of:

PERFORMER=Performer1
PERFORMER=Performer2

I've asked Spoon to please always parse such entries so that multiple tags are created instead of one long one. So far, no joy there. We wish to be able to tag each track with all of the performer's names and instrumentation, but if only one tag is created for all of them, it becomes very, very long and may be truncated. This is an obvious problem.

So here's the question: Is it possible to write a script of some kind that will "inspect" all Vorbis comments for this spacing (semicolon followed by a single space) and create individual Vorbis comments for each element in the original long string of values?

The only other option appears to enter each performer's tag information, one at a time, using the Alt-T panel and the New/Edit/OK buttons in mp3tag. Naturally it would be best if this were done 'correctly' in dbpoweramp to begin with.

"d2b"


--------------------
Dennis Brunnenmeyer
Volunteer Broadcaster
KVMR-FM Radio
401 Spring Street
95959 Nevada City
California, USA
Go to the top of the page
 
+Quote Post
JJ Johnson
post Jun 7 2012, 08:11
Post #2


Member


Group: Full Members
Posts: 775
Joined: 18-April 05
Member No.: 1742
Mp3tag Version: 2.55a



Mp3tag has an action type of 'Split field by separator' that could be used. I haven't used it before, but some testing indicates that it only works with single character separators. If I enter the two characters "; " (semi-colon, space) then it also splits the field around spaces. It seems that what you're actually entering is not a separator, but a list of individual separator characters (maybe that's a bug, or maybe it's just badly documented).

One way to work around that is to first replace "; " with some single unusual character that wouldn't normally be found in your tags. I used a backquote ( ` ).

So to create your splitting action group, use two actions.

Action type: Replace
Field: ARTIST
Original: ;
Replace with: `
[ ] only as whole word
[ ] case-sensitive comparison

(with a space after the semi-colon)

Action type: Split field by separator
Field: ARTIST
Separator: `

Mp3tag has an _ALL pseudo-fieldname that I believe is intended to allow working on all fields at the same time, but I tested it and while the Replace action functioned correctly, the Split action did not. Realistically, you probably don't have more than a half dozen or so fields where this type of action would be necessary (multiple albums or titles is unlikely). In Mp3tag you can easily copy actions within an action group, so duplicating the above two actions for another five or six fields wouldn't be hard. Just copy them and then change the fieldname.

This post has been edited by JJ Johnson: Jun 7 2012, 08:36
Go to the top of the page
 
+Quote Post
ohrenkino
post Jun 7 2012, 08:31
Post #3


Member


Group: Full Members
Posts: 3164
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.55a



ZITAT(d2b @ Jun 7 2012, 08:38) *
...
So here's the question: Is it possible to write a script of some kind that will "inspect" all Vorbis comments for this spacing (semicolon followed by a single space) and create individual Vorbis comments for each element in the original long string of values?

MP3tag interprets a double backslash \\ as separator for multi-value fields.
So, if you replace the Semicolon blank with a double backslash, then MP3tag should create multi-value fields on save.
These are then interpreted and displayed in their own way by the various players.


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post
JJ Johnson
post Jun 7 2012, 08:34
Post #4


Member


Group: Full Members
Posts: 775
Joined: 18-April 05
Member No.: 1742
Mp3tag Version: 2.55a



QUOTE (ohrenkino @ Jun 7 2012, 01:31) *
MP3tag interprets a double backslash \\ as separator for multi-value fields.
So, if you replace the Semicolon blank with a double backslash, then MP3tag should create multi-value fields on save.
These are then interpreted and displayed in their own way by the various players.


Yeah, I thought of that and tested it, but like you say, you have to then do a Save. Simply replacing "; " with "\\" doesn't do it by itself. It remains a single field.
Go to the top of the page
 
+Quote Post
dano
post Jun 7 2012, 08:46
Post #5


Moderator


Group: Moderators
Posts: 5507
Joined: 4-September 03
From: Germany
Member No.: 201
Mp3tag Version: 2.55a



Use the Split field by separator action with ";" as separator.
Trailing spaces are removed automatically during the process.


--------------------
Go to the top of the page
 
+Quote Post
JJ Johnson
post Jun 7 2012, 08:52
Post #6


Member


Group: Full Members
Posts: 775
Joined: 18-April 05
Member No.: 1742
Mp3tag Version: 2.55a



QUOTE (dano @ Jun 7 2012, 01:46) *
Use the Split field by separator action with ";" as separator.
Trailing spaces are removed automatically during the process.


Unless you don't want to split a field around only a semi-colon that doesn't have a following space.

This post has been edited by JJ Johnson: Jun 14 2012, 01:23
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th May 2013 - 05:58