1
0
forked from um/web

Fix .xm read info from filename

This commit is contained in:
MengYX 2020-08-13 15:33:15 +08:00
parent b6757e81a2
commit 3b885f82ca
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

View File

@ -46,8 +46,8 @@ export async function Decrypt(file, raw_filename, raw_ext) {
musicMeta.common.artist = ""; musicMeta.common.artist = "";
musicMeta.common.title = ""; musicMeta.common.title = "";
} }
let _sep = raw_filename.indexof("_") === -1 ? "-" : "_"
const info = GetFileInfo(musicMeta.common.artist, musicMeta.common.title, raw_filename, "_"); const info = GetFileInfo(musicMeta.common.artist, musicMeta.common.title, raw_filename, _sep);
const imgUrl = GetMetaCoverURL(musicMeta); const imgUrl = GetMetaCoverURL(musicMeta);