|
|
|
@ -60,6 +60,7 @@ export function MediaView() { |
|
|
|
const [stream, setStream] = useState<MWStream | null>(null); |
|
|
|
const [stream, setStream] = useState<MWStream | null>(null); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
|
|
|
|
// TODO handle errors
|
|
|
|
(async () => { |
|
|
|
(async () => { |
|
|
|
const [t, id] = params.media.split("-", 2); |
|
|
|
const [t, id] = params.media.split("-", 2); |
|
|
|
const type = JWMediaToMediaType(t); |
|
|
|
const type = JWMediaToMediaType(t); |
|
|
|
@ -68,7 +69,6 @@ export function MediaView() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
}, [setMeta, params]); |
|
|
|
}, [setMeta, params]); |
|
|
|
|
|
|
|
|
|
|
|
// TODO not found checks
|
|
|
|
|
|
|
|
// TODO watched store
|
|
|
|
// TODO watched store
|
|
|
|
// TODO scrape loading state
|
|
|
|
// TODO scrape loading state
|
|
|
|
// TODO error page with video header
|
|
|
|
// TODO error page with video header
|
|
|
|
|