Skip to content

Commit 1b96c16

Browse files
authored
Sync commit fixing flac metadata (#307)
1 parent 31ca016 commit 1b96c16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scripts/metadata/flac.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ function parseVorbisComment(dataView: DataView): Record<string, string> {
5959
const comment = getString(dataView, offset, commentLength)
6060
offset += commentLength
6161

62-
const [key, value] = comment.split('=')
62+
const ind = comment.indexOf('=')
63+
const key = comment.substring(0, ind)
6364

64-
comments[key] = value
65+
comments[key] = comment.substring(ind + 1)
6566
}
6667

6768
return comments

0 commit comments

Comments
 (0)