Fix errors when parsing ncm files without metadata

This commit is contained in:
MengYX
2020-03-10 09:31:48 +08:00
parent 97ca09dbae
commit 24e1d33642
3 changed files with 16 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ export async function CommonDecrypt(file) {
let rt_data;
switch (raw_ext) {
case "ncm":// Netease Mp3/Flac
rt_data = await NcmDecrypt.Decrypt(file.raw);
rt_data = await NcmDecrypt.Decrypt(file.raw, raw_filename, raw_ext);
break;
case "mp3":// Raw Mp3
case "flac"://Raw Flac