mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-02 12:08:37 +01:00
fix(autoplay): make Cancel stop the timer and fix stale cast capture state
This commit is contained in:
@@ -407,6 +407,9 @@ export default function CastingPlayerScreen() {
|
||||
const autoplayPosterUrl = useMemo(() => {
|
||||
if (!castAutoplay || !api?.basePath) return null;
|
||||
const ep = castAutoplay.nextEpisode;
|
||||
// `BaseItemDto.Id` is `string | undefined`; bail if missing so we never
|
||||
// call the helper with `undefined`. AutoplayCountdown handles null.
|
||||
if (!ep?.Id) return null;
|
||||
return getPosterUrl(api.basePath, ep.Id, ep.ImageTags?.Primary, 260, 390);
|
||||
}, [castAutoplay, api?.basePath]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user