fixed track titles in tagging
This commit is contained in:
parent
42e600bd4c
commit
44e40ba9a3
File diff suppressed because one or more lines are too long
5
index.js
5
index.js
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue