Hydrogenaudio Forums

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Jacksoft on 2019-12-02 21:38:15

Title: Output and Name formatting problem
Post by: Jacksoft on 2019-12-02 21:38:15
Hi all,
I'm using Foobar2000 to convert my tracks usually from FLAC to MP3 and I made by myself some "name format script" years ago.
Usually I convert just simple albums with the same author/group and I didn't have seen the issue so often that I'll show below.

I'm using a series of 'if then' to create the right path for the tracks, mainly "\Album Artist\Album Name\Disk number (if more than 1)\Track num - Track name" with this script:
$replace(\$if(%album artist%,%album artist%)\$if(%album%,%album%)\$ifgreater(%totaldiscs%, 1,Disk %discnumber%,)\$if(%tracknumber%,%tracknumber% - )%title%,:, -)

It works good except the fact that in some case (but I've investigated just now about this problem) the album artist is incorrect, it uses 'Album Artist, Artist' instead of the first one only.
I just need the Album Artist specified in the tag, not also other artists. The problem shown both on old 1.3.x and on latest 1.5.
Can someone figure me out where I'm wrong with the script?
Attached a screenshot as reference compared with TagScanner that I use fix my tracks informations before any conversion.
Of course this affects also tags of output files.

Thanks in advance.
Title: Re: Output and Name formatting problem
Post by: Case on 2019-12-03 16:33:34
foobar2000 must see different tags than TagScanner. Why don't you use foobar2000 to fix the tagging?
Title: Re: Output and Name formatting problem
Post by: davideleo on 2019-12-03 17:15:41
The "issue" looks like a consequence of foobar2000 metadata field remapping (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#Remapped_metadata_fields) system. You need to use the $meta() function to avoid it.

BTW
$if(%field%,%field%) can be written as [%field%]
Title: Re: Output and Name formatting problem
Post by: anamorphic on 2019-12-03 23:59:02
The "issue" looks like a consequence of foobar2000 metadata field remapping (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#Remapped_metadata_fields) system.

I was thinking that too, but not sure about that. With the $if there, it only displays %album artist% if present. Meanwhile field remapping only goes to %artist% if not present.

Quote
You need to use the $meta() function to avoid it.

That could work anyway...

As it does not appear to make sense what is happening, OP should investigate the tags in foobar as Case said, to start with.
Title: Re: Output and Name formatting problem
Post by: Jacksoft on 2019-12-05 21:08:46
The "issue" looks like a consequence of foobar2000 metadata field remapping (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#Remapped_metadata_fields) system. You need to use the $meta() function to avoid it.

BTW
$if(%field%,%field%) can be written as [%field%]

Thank you for the tip!
Seems works with $meta, but I'll do more tests later. However I found something strange by using an Hex Editor: there are two album artist metadata (ALBUMARTIST and ALBUM ARTIST). I'll test with others tag editors what happens, eventually I'll also write an email to TagScanner author.
PS: I use TagScanner because is easier, for me at least, to mass fix Albums infos.

Thank you all!
SimplePortal 1.0.0 RC1 © 2008-2020