Scheme URL API新增 music/searchPlay 支持(#1886)

This commit is contained in:
lyswhut
2024-05-14 09:58:07 +08:00
parent 8e7fd1ecef
commit 2ee7572634
4 changed files with 65 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const getOtherSourcePromises = new Map()
export const existTimeExp = /\[\d{1,2}:.*\d{1,4}\]/
export const getOtherSource = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, isRefresh = false): Promise<LX.Music.MusicInfoOnline[]> => {
if (!isRefresh) {
if (!isRefresh && musicInfo.id) {
const cachedInfo = await getOtherSourceFromStore(musicInfo.id)
if (cachedInfo.length) return cachedInfo
}