Fix:Trim whitespace when parsing audio file meta tags #997

This commit is contained in:
advplyr 2022-09-25 17:15:19 -05:00
parent 162a1b7971
commit b7bdaac163

View File

@ -74,7 +74,7 @@ function tryGrabTags(stream, ...tags) {
if (!stream.tags) return null
for (let i = 0; i < tags.length; i++) {
var value = stream.tags[tags[i]] || stream.tags[tags[i].toUpperCase()]
if (value) return value
if (value && value.trim()) return value.trim()
}
return null
}