Help - Search - Members - Calendar
Full Version: What to do when %track artist% = %album artist%
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
NogginJ
i have a nice script going to sort large amounts of files in folders. i am running into a problem however with a few instances where the track artist matches the album artist.

for example, i have a live daft punk. they mix mainly other songs, but some songs are their own, daft punk songs. the code works fine except on those tracks. normally, for mixes, i have it sort out ## - artist - title. however, when it comes to the daft punk tracks, since those match the album artist, it displays them as artist - ## - title...my standard, single artist scheme.

what can be changed about this code to prevent this? ive looked for conditions where two fields are equal, but the $isequal function appears to want integers? any pointers?

CODE
$caps2($if(%track artist%,%album artist%/'('%date%')' %album%/$if2(%vinyl track%,$num(%tracknumber%,2)) - %artist% - %title%,%artist%/'('%date%')' %album%/%artist% - $if2(%vinyl track%,$num(%tracknumber%,2)) - %title%))
shakey_snake
$if($strcmp(STR1,STR2),THEN,ELSE)
NogginJ
howdy everyone
im gonna bring this back up because i still havent found a solution.

an example is a mix cd by dj screw.
i have album artist as dj screw, and individual track artists vary. however, on certain tracks, the track artist is 'dj screw'. in this instance, foobar drops the track artist tag completely, so my schemes that look for such a tag fail.

how can i get around this? i've tried checking if album artist and artist are the same but that does not work.

are there any tips anyone has on displaying these tracks properly?

its like foobar ALWAYS assumes there is an album artist now...for a single artist set, the album artist is the same as %artist%. for instances where the %album artist% tag is set, foobar sets %track artist% tags. i cant see how to get around this because as soon as %album artist% equals %artist% or %track artist%, %track artist% goes away and foobar basically treats it like any other file that does NOT have the %album artist% tag set.
foosion
What tags do you actually use in the files (as seen in the properties dialog)?
Hakubo
$if($meta_test(album artist),THEN,ELSE)
NogginJ
i use the following:

for a regular, single artist cd i only input the %artist% tag.
for a multiple artist cd, i use the %album artist% tag, along with individual %artist% tags.
the problem arises when %artist% = %album artist%. ie. when a dj has his own track in a mix, like in the examples given above.

EDIT:

thanks

thank you so kindly. i figured it had something to do with the meta things. do they basically get checked before any of the higher level mappings i guess?

thanks!

-j
Hakubo
QUOTE
thank you so kindly. i figured it had something to do with the meta things. do they basically get checked before any of the higher level mappings i guess?
Yes, remappings occur only when you access values through %name% syntax (as written in wiki). All the $meta functions process the tag values directly.

For various artist album detection you can use the $meta_test expression alone, provided the Album Artist field is filled for all those, and is empty for single artist albums.
NogginJ
thank you again. i remember this changing somewhere, but needed a personal example to let me see how it actually works.
tool++
CODE
$if($meta_test(album artist),$meta(album artist),%artist%)/%album%/$cut([%discnumber%]$num(%tracknumber%,2)'-'$replace($lower($cut(%artist%,100)), ,_)'--'$lower($replace($cut(%title%,50), ,_)),250)


This seems to flow logically for everything I've ever thrown at it.

If you tag something as various artists, make sure the album has an album artist. If not, it doesn't matter either way.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.