mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-06 02:13:29 +03:00
Fix log message, as it is also used for taglib
This commit is contained in:
parent
10e52bdd3f
commit
7c23bd0890
@ -151,7 +151,7 @@ func (m *baseMetadata) parseYear(tags ...string) int {
|
|||||||
if v, ok := m.tags[t]; ok {
|
if v, ok := m.tags[t]; ok {
|
||||||
match := dateRegex.FindStringSubmatch(v)
|
match := dateRegex.FindStringSubmatch(v)
|
||||||
if len(match) == 0 {
|
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
|
return 0
|
||||||
}
|
}
|
||||||
year, _ := strconv.Atoi(match[1])
|
year, _ := strconv.Atoi(match[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user