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:
@@ -52,5 +52,5 @@ func (t *Tags) Bitrate() int { return t.props.Bitrate }
|
|||||||
|
|
||||||
func (t *Tags) Year() int {
|
func (t *Tags) Year() int {
|
||||||
// eg. 2019-6-11
|
// eg. 2019-6-11
|
||||||
return intSep(t.firstTag("original_date", "original_year", "date", "year"), "-")
|
return intSep(t.firstTag("originaldate", "date", "year"), "-")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user