mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
remove/disable download options
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user