remove/disable download options

This commit is contained in:
austinried
2021-08-16 11:05:38 +09:00
parent d72258c68e
commit ad25972774
7 changed files with 84 additions and 62 deletions

View File

@@ -106,10 +106,6 @@ export const useCoverArtFile = (coverArt: string = '-1') => {
}
}, [cacheItem, client, coverArt, file])
// if (file && request && request.promise !== undefined) {
// return
// }
return { file, request }
}
@@ -125,9 +121,5 @@ export const useArtistArtFile = (artistId: string) => {
}
}, [artistId, artistInfo, artistInfo?.largeImageUrl, cacheItem, file])
// if (file && request && request.promise !== undefined) {
// return
// }
return { file, request }
}

View File

@@ -191,7 +191,7 @@ export const useSetQueue = () => {
const getQueueShuffled = useCallback(() => !!useStore.getState().shuffleOrder, [])
const setQueueContextType = useStore(selectTrackPlayer.setQueueContextType)
const setQueueContextId = useStore(selectTrackPlayer.setQueueContextId)
const getCoverArtPath = useStore(selectCache.getCoverArtPath)
const fetchCoverArtFilePath = useStore(selectCache.fetchCoverArtFilePath)
return async (
songs: Song[],
@@ -217,7 +217,7 @@ export const useSetQueue = () => {
continue
}
coverArtPaths[s.coverArt] = await getCoverArtPath(s.coverArt)
coverArtPaths[s.coverArt] = await fetchCoverArtFilePath(s.coverArt)
}
let queue = songs.map(s => mapSongToTrack(s, coverArtPaths))