HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: isaiah36 on 2020-08-21 14:34:48

Title: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-21 14:34:48
Hello,

I want to tweak the Album Artist tag so that it does not automatically substitute the Artist when the former is blank. I have added Album Artist as a column in my Playlist view. I want to sort the library so I can see when Album Artist is blank. I want to make the edits manually.

TIA
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: Pollux88 on 2020-08-21 15:27:18
Code: [Select]
$if(%album artist%,%album artist%)
is supposed to achieve this, and it does, but it doesn't seem to work for .cue sheets for me for some reason...
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: Pollux88 on 2020-08-21 15:41:48
Okay, I've forgotten about the $meta function, it seems to do the trick.
So,
Code: [Select]
$if($meta(album artist),%album artist%)
should do exactly what you want
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: jazzthieve on 2020-08-21 15:45:14
Try this
Code: [Select]
$if2($meta(album artist),)
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-21 15:47:58
Thanks for the reply, Pollux, but I am a dummy. Can you tell me exactly what to do? Does this piece of code need to be added somewhere? Or, does an existing code need to be edited?

TIA
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: Pollux88 on 2020-08-21 15:52:26
Thanks for the reply, Pollux, but I am a dummy. Can you tell me exactly what to do? Does this piece of code need to be added somewhere? Or, does an existing code need to be edited?

TIA
In File=>preferences=>playlist view edit the contents of your "album artist" column. Replace %album artist% with the code (mine or jazzthieve's. His is neater, but basically it doesn't matter).
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-21 16:30:33
Thanks, Pollux! I went ahead and tried exactly that with jazzthieve's code, after checking the box for 'Use custom sort script' in the column properties. It worked.

But I have a lot of manual editing to do! Is there a way I can tell Foobar to batch edit all the empty Album Artist tags with the contents of the Artist tag? I need this only for the empty fields. Plex Media Server only reads Album Artist, and makes a mess of my library. I want to make it easier so the rest of the family can listen to music from the phone or the TV, without a computer.
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: Pollux88 on 2020-08-21 16:40:23
You'd be better off with dedicated tag editing software. There are components for Foobar for that purpose though, like masstagger, So you might want to try that first.
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: anamorphic on 2020-08-21 18:58:25
Is there a way I can tell Foobar to batch edit all the empty Album Artist tags with the contents of the Artist tag?

Library menu > Search, enter the pattern -

Code: [Select]
"$meta(album artist)" MISSING

Select all the resulting tracks (click a track and Ctrl-A)

Right-click tracks > Properties

Right-click Album Artist field > 'Format from other fields', enter the pattern -

Code: [Select]
%artist%

Check the preview and OK, OK.
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-21 22:15:32
Thanks, Anamorphic! It's working, and it reads the database lightning fast! Amazing. Is there any limit to the awesomeness of Foobar?
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-22 23:09:48
Any idea why DSF files may not be taking tags? I have converted some DFF files to DSF for meta tags, but the tags are not sticking somehow.
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: kode54 on 2020-08-23 01:25:48
foo_input_sacd does not support editing tags, to my knowledge. And neither does my component, foo_input_dsdiff.
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-23 15:12:23
foo_input_sacd does not support editing tags, to my knowledge. And neither does my component, foo_input_dsdiff.

It is not a consistent behavior oddly. Some files do take tags, others do not. The Masstagger tool wiped a lot of old tags out. I suspect they were not embedded tags, but a separate db Foobar maintains to keep the files orderly even if they cannot be tagged.

I had read somewhere that DFF files are not taggable but DSF files are. Now, I am using an app called EZ Meta Tag Editor (free trial) which is able to embed tags in both.
Title: Re: Tweaking Album Artist tag to show blank in Playlist
Post by: isaiah36 on 2020-08-25 22:30:52
Just FYI for anyone reading about the Masstagger, it did the main thing I needed done. but it did not do something else. I tried to remove a string of words from the title field, and it returned 'No changes'. The string was '(2010 Digital Remaster)' embedded in the titles. It could be I was doing it wrong somehow.