Fix log message, as it is also used for taglib

This commit is contained in:
Deluan 2020-12-25 12:45:38 -05:00 committed by Joe Stump
parent 12255c8228
commit 8313d6fe97
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -151,7 +151,7 @@ func (m *baseMetadata) parseYear(tags ...string) int {
if v, ok := m.tags[t]; ok {
match := dateRegex.FindStringSubmatch(v)
if len(match) == 0 {
log.Warn("Error parsing year from ffmpeg date field", "file", m.filePath, "date", v)
log.Warn("Error parsing year date field", "file", m.filePath, "date", v)
return 0
}
year, _ := strconv.Atoi(match[1])