1 (edited by r0k78 2012-07-28 17:01:18)

Topic: Can't unset disc number.

It appears i can't unset the discnumber and totaldiscs tags in picard 1.0.

I don't need disc numbers for 1 disc releases, so i tried to remove them. I used this tagger script line :
$if($eq(%totaldiscs%,1),$unset(totaldiscs)$unset(discnumber))
but that didn't work.
Other tagger script lines are working, but not this one. As a test, i disabled every plugin but it's still not working.
Did i miss something?

EDIT : Even plain $unset without any condition does not work.

Re: Can't unset disc number.

Note that $unset does not remove a tag, it only prevents Picard of writing new info to it. So maybe the info you're trying to prevent being written, was written to the file previously?
If this is the case, you might want to turn on 'clear existing tags', but remember that this clears all tags, except for the specified exclusions. And at the moment there is no possibility to retain artwork, neither can you retain tags similar to 'comment:description' where the description has one or more capitals (due to a bug).

If the above is not the problem, try using only this line in your taggerscript (that's the one I use):
$if($eq(%totaldiscs%,1), $unset(discnumber) $unset(totaldiscs),)
I don't know whether the space and the comma make any difference.
Possibly another scripting-line is causing a problem, ending up in later defined lines not being executed.

Re: Can't unset disc number.

Your script as above will work fine, if as Tantali rightly mentions, you are willing to enable "clear existing tags". The space and the comma don't make any difference.

Re: Can't unset disc number.

Thanks, discnumber was indeed written by dBPowerAMP when i ripped the disc. I'll have a look at the options there. Maybe i can prevent it from writing disc number for 1 disc albums.

I guess the 'comment:description' is something that affects MP3 tags. If so, i'm not concerned (vorbis power :-) )

Re: Can't unset disc number.

Comment tags are written to all formats.

In any case, that was just an example. Using "clear existing tags", with a combination of "preserve this tag" settings is probably what you are looking for.