Comparing version 0.1.20 to 0.1.21
14
index.js
@@ -934,10 +934,10 @@ const fs = require('fs') | ||
} else { | ||
let descOffset = APICFrame.indexOf(0x00, 1) + 2 | ||
let desc = APICFrame.slice(descOffset) | ||
let descFound = desc.indexOf("0000", 0, 'hex') | ||
descEnd = descOffset + descFound + 2 | ||
if(descFound != -1) { | ||
picture.description = iconv.decode(desc.slice(0, descFound + 2), 'utf16') || undefined | ||
descEnd = 0 | ||
while(APICFrame[descEnd] !== undefined && APICFrame[descEnd] !== 0x00 || APICFrame[descEnd + 1] !== 0x00 || APICFrame[descEnd + 2] === 0x00) { | ||
descEnd++ | ||
} | ||
if(APICFrame[descEnd] !== undefined) { | ||
picture.description = iconv.decode(APICFrame.slice(APICFrame.indexOf(0x00, 1) + 2, descEnd), 'utf16').replace(/\0/g, "") || undefined | ||
descEnd += 1 | ||
} | ||
} | ||
@@ -944,0 +944,0 @@ } |
{ | ||
"name": "node-id3", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "Pure JavaScript ID3 Tag writer/reader", | ||
@@ -5,0 +5,0 @@ "author": "Jan Metzger <jan.metzger@gmx.net>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103646
2354