Reduce level of "invalid year" log message
This commit is contained in:
parent
6c5dd245fe
commit
1dd3a794f8
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ func (m *Metadata) parseYear(tagName string) int {
|
||||||
if v, ok := m.tags[tagName]; ok {
|
if v, ok := m.tags[tagName]; ok {
|
||||||
match := dateRegex.FindStringSubmatch(v)
|
match := dateRegex.FindStringSubmatch(v)
|
||||||
if len(match) == 0 {
|
if len(match) == 0 {
|
||||||
log.Error("Error parsing year from ffmpeg date field. Please report this issue", "file", m.filePath, "date", v)
|
log.Warn("Error parsing year from ffmpeg date field", "file", m.filePath, "date", v)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
year, _ := strconv.Atoi(match[1])
|
year, _ := strconv.Atoi(match[1])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue