Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Foobar parsing $year(%date%) incorrectly in id3v2.3 (Read 3296 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Foobar parsing $year(%date%) incorrectly in id3v2.3

If the TDAT frame's contents begin with 00 (0012 for example, meaning the month but not the date is known), then foobar returns "0000" in the playlist.

It happens with any of the following title formatting:

$year(%date%)
$cut(%date%,4)
$left(%date%,4)
$substr(%date%,1,$sub($strchr(%date%,-),1))

I also tried substituting $meta(date) in those scripts.

foobar sorts the albums correctly in the playlist when you sort by year. It's just displaying the year incorrectly.

This is, of course, occurring in 1.1.13


The bug shows in the DUI as well as Facets and Columns UI. Interestingly, if you create a filter in CUI, the filter will display two years separately for tracks with the aforementioned TDAT frames: once under 0000 and once under the correct year.

EDIT:

This bug also affects $month(%date%). "00" is returned for month under the same condition as outlined above. Tracks are only listed once however in a CUI filter. This time under 00 only.