Skip to content

Commit

Permalink
Fix:Trim whitespace when parsing audio file meta tags #997
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Sep 25, 2022
1 parent 162a1b7 commit b7bdaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/prober.js
Expand Up @@ -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
}
Expand Down

0 comments on commit b7bdaac

Please sign in to comment.