mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Fix:Trim whitespace when parsing audio file meta tags #997
This commit is contained in:
parent
162a1b7971
commit
b7bdaac163
@ -74,7 +74,7 @@ function tryGrabTags(stream, ...tags) {
|
|||||||
if (!stream.tags) return null
|
if (!stream.tags) return null
|
||||||
for (let i = 0; i < tags.length; i++) {
|
for (let i = 0; i < tags.length; i++) {
|
||||||
var value = stream.tags[tags[i]] || stream.tags[tags[i].toUpperCase()]
|
var value = stream.tags[tags[i]] || stream.tags[tags[i].toUpperCase()]
|
||||||
if (value) return value
|
if (value && value.trim()) return value.trim()
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user