mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-14 20:39:11 +01:00
Fix bug where stream freezes without extension
Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com>
This commit is contained in:
parent
a226f3347c
commit
965cc56570
@ -5,6 +5,7 @@ import {
|
||||
} from "@movie-web/providers";
|
||||
import { RefObject, useCallback, useEffect, useRef, useState } from "react";
|
||||
|
||||
import { isExtensionActiveCached } from "@/backend/extension/messaging";
|
||||
import { prepareStream } from "@/backend/extension/streams";
|
||||
import {
|
||||
connectServerSideEvents,
|
||||
@ -186,7 +187,8 @@ export function useScrape() {
|
||||
discoverEmbeds: discoverEmbedsEvent,
|
||||
},
|
||||
});
|
||||
if (output) await prepareStream(output.stream);
|
||||
if (output && isExtensionActiveCached())
|
||||
await prepareStream(output.stream);
|
||||
return getResult(output);
|
||||
},
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user