From 5bb0e4f7709bd0551d8615ee853f433b897f08a4 Mon Sep 17 00:00:00 2001 From: MengYX Date: Thu, 13 Aug 2020 21:27:33 +0800 Subject: [PATCH] fix .xm filename detect --- src/decrypt/xm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/decrypt/xm.js b/src/decrypt/xm.js index 9fe2baa..171d493 100644 --- a/src/decrypt/xm.js +++ b/src/decrypt/xm.js @@ -42,11 +42,12 @@ export async function Decrypt(file, raw_filename, raw_ext) { const musicMeta = await musicMetadata.parseBlob(musicBlob); if (ext === "wav") { //todo:未知的编码方式 + console.log(musicMeta.common) musicMeta.common.album = ""; musicMeta.common.artist = ""; musicMeta.common.title = ""; } - let _sep = raw_filename.indexof("_") === -1 ? "-" : "_" + let _sep = raw_filename.indexOf("_") === -1 ? "-" : "_" const info = GetFileInfo(musicMeta.common.artist, musicMeta.common.title, raw_filename, _sep); const imgUrl = GetMetaCoverURL(musicMeta);