1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Use peak debugging tech #3

This commit is contained in:
Cooper Ransom 2024-03-24 14:13:39 -04:00
parent 883503dab3
commit 566f7e921d

View file

@ -81,10 +81,10 @@ export function NextEpisodeButton(props: {
}, [setDirectMeta, nextEp, meta, props, setShouldStartFromBeginning]); }, [setDirectMeta, nextEp, meta, props, setShouldStartFromBeginning]);
useEffect(() => { useEffect(() => {
if (time === duration && meta && nextEp) { if (time === duration && showingState === "always") {
loadNextEpisode(); loadNextEpisode();
} }
}, [time, duration, meta, nextEp, loadNextEpisode]); }, [time, duration, showingState, loadNextEpisode]);
const startCurrentEpisodeFromBeginning = useCallback(() => { const startCurrentEpisodeFromBeginning = useCallback(() => {
if (!meta || !meta.episode) return; if (!meta || !meta.episode) return;