播放本地歌曲时,将优先尝试读取本地同名字的 jpg 或 png 图片作为播放封面显示
This commit is contained in:
@@ -15,6 +15,7 @@ const getTempDir = async() => {
|
||||
export const getMusicFilePic = async(filePath: string) => {
|
||||
const picture = await getLocalMusicFilePic(filePath)
|
||||
if (!picture) return ''
|
||||
if (typeof picture == 'string') return picture
|
||||
if (picture.data.length > 400_000) {
|
||||
try {
|
||||
const tempDir = await getTempDir()
|
||||
|
||||
Reference in New Issue
Block a user