fix: joox skip metadata fetch if api fails

This commit is contained in:
鲁树人 2024-09-29 18:20:44 +01:00
parent 2835ac08ec
commit 584fb24fdd

View File

@ -55,7 +55,7 @@ export async function extractQQMusicMeta(
if (id && id !== '0') { if (id && id !== '0') {
try { try {
return fetchMetadataFromSongId(id, ext, musicMeta, musicBlob); return await fetchMetadataFromSongId(id, ext, musicMeta, musicBlob);
} catch (e) { } catch (e) {
console.warn('在线获取曲目信息失败,回退到本地 meta 提取', e); console.warn('在线获取曲目信息失败,回退到本地 meta 提取', e);
} }