fixed track titles in tagging

This commit is contained in:
uh wot 2021-10-14 17:39:34 +02:00
parent 42e600bd4c
commit 44e40ba9a3
Signed by: uhwot
GPG Key ID: CB2454984587B781
2 changed files with 5 additions and 2 deletions

2
dist/worker.js vendored

File diff suppressed because one or more lines are too long

View File

@ -187,7 +187,10 @@ async function track(id, format, tagging) {
if (tagging) { if (tagging) {
id3 = new ID3Writer(Buffer.alloc(0)); id3 = new ID3Writer(Buffer.alloc(0));
id3.padding = 0 id3.padding = 0
id3.setFrame('TIT2', json.SNG_TITLE)
let title = json.SNG_TITLE
if (json.VERSION !== undefined) title += ` ${json.VERSION}`
id3.setFrame('TIT2', title)
.setFrame('TALB', json.ALB_TITLE) .setFrame('TALB', json.ALB_TITLE)
.setFrame('TPE2', json.ART_NAME) .setFrame('TPE2', json.ART_NAME)