From 3b885f82ca9494c872dc207b9028294769ef73a0 Mon Sep 17 00:00:00 2001 From: MengYX Date: Thu, 13 Aug 2020 15:33:15 +0800 Subject: [PATCH] Fix .xm read info from filename --- src/decrypt/xm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decrypt/xm.js b/src/decrypt/xm.js index 33f2375..9fe2baa 100644 --- a/src/decrypt/xm.js +++ b/src/decrypt/xm.js @@ -46,8 +46,8 @@ export async function Decrypt(file, raw_filename, raw_ext) { musicMeta.common.artist = ""; musicMeta.common.title = ""; } - - const info = GetFileInfo(musicMeta.common.artist, musicMeta.common.title, raw_filename, "_"); + let _sep = raw_filename.indexof("_") === -1 ? "-" : "_" + const info = GetFileInfo(musicMeta.common.artist, musicMeta.common.title, raw_filename, _sep); const imgUrl = GetMetaCoverURL(musicMeta);