mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-13 19:19:10 +01:00
Source list
This commit is contained in:
parent
2bf0b5b03c
commit
116501e0c1
@ -138,8 +138,8 @@ export function SourceSelectionView({
|
|||||||
const currentSourceId = usePlayerStore((s) => s.sourceId);
|
const currentSourceId = usePlayerStore((s) => s.sourceId);
|
||||||
const sources = useMemo(() => {
|
const sources = useMemo(() => {
|
||||||
if (!metaType) return [];
|
if (!metaType) return [];
|
||||||
return providers
|
return getCachedMetadata()
|
||||||
.listSources()
|
.filter((v) => v.type === "source")
|
||||||
.filter((v) => v.mediaTypes?.includes(metaType));
|
.filter((v) => v.mediaTypes?.includes(metaType));
|
||||||
}, [metaType]);
|
}, [metaType]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user