1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Source list

This commit is contained in:
mrjvs 2023-12-19 00:14:13 +01:00
parent 2bf0b5b03c
commit 116501e0c1

View file

@ -138,8 +138,8 @@ export function SourceSelectionView({
const currentSourceId = usePlayerStore((s) => s.sourceId);
const sources = useMemo(() => {
if (!metaType) return [];
return providers
.listSources()
return getCachedMetadata()
.filter((v) => v.type === "source")
.filter((v) => v.mediaTypes?.includes(metaType));
}, [metaType]);