pull/1155/head
lyswhut 2023-01-11 08:33:13 +08:00
parent 7273b6ad67
commit bf310adc12
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ declare namespace LX {
id: string
name: string
// list: LX.Music.MusicInfo[]
source?: LX.Source
source?: LX.OnlineSource
sourceListId?: string
// position?: number
locationUpdateTime: number | null

View File

@ -56,7 +56,7 @@ export const createUserList = async({ name, id = `userlist_${Date.now()}`, list
name?: string
id?: string
list?: LX.Music.MusicInfo[]
source?: LX.Source
source?: LX.OnlineSource
sourceListId?: string
position?: number
}) => {

View File

@ -22,7 +22,7 @@ const fetchList = async(id: string, source: LX.OnlineSource, sourceListId: strin
export default async(targetListInfo: LX.List.UserListInfo) => {
// console.log(targetListInfo)
if (!targetListInfo.source || !targetListInfo.sourceListId) return
const list = await fetchList(targetListInfo.id, targetListInfo.source as LX.OnlineSource, targetListInfo.sourceListId)
const list = await fetchList(targetListInfo.id, targetListInfo.source, targetListInfo.sourceListId)
// console.log(list)
void overwriteListMusics({ listId: targetListInfo.id, musicInfos: list })
const now = Date.now()

View File

@ -35,7 +35,7 @@ declare namespace LX {
/**
* id
*/
listId: '__temp__'
listId: string
/**
*
*/