mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复本地歌曲的图片无法在通知栏显示的问题(#392)
This commit is contained in:
parent
4b6ce74a36
commit
27e82baed0
@ -91,8 +91,11 @@ export const getPicUrl = async({ musicInfo, listId, isRefresh, onToggleSource =
|
||||
onToggleSource?: (musicInfo?: LX.Music.MusicInfoOnline) => void
|
||||
}): Promise<string> => {
|
||||
if (!isRefresh) {
|
||||
const pic = await readPic(musicInfo.meta.filePath)
|
||||
if (pic) return pic
|
||||
let pic = await readPic(musicInfo.meta.filePath)
|
||||
if (pic) {
|
||||
if (pic.startsWith('/')) pic = `file://${pic}`
|
||||
return pic
|
||||
}
|
||||
|
||||
if (musicInfo.meta.picUrl) return musicInfo.meta.picUrl
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user