scanner/tags: fix original date

Real tag is `originaldate` and matches TDOR from taglib in id3v2:
https://github.com/taglib/taglib/blob/1644c0dd/taglib/mpeg/id3v2/id3v2frame.cpp#L338

originalyear does not exist.
This commit is contained in:
Duncan Overbruck
2021-04-19 16:10:01 +02:00
parent 482c6f0e19
commit ef86f5b094

View File

@@ -52,5 +52,5 @@ func (t *Tags) Bitrate() int { return t.props.Bitrate }
func (t *Tags) Year() int {
// eg. 2019-6-11
return intSep(t.firstTag("original_date", "original_year", "date", "year"), "-")
return intSep(t.firstTag("originaldate", "date", "year"), "-")
}