chore: cleanup

This commit is contained in:
Adrian Castro
2024-02-12 15:28:12 +01:00
parent 33a62752e2
commit 70d074f386

View File

@@ -3,7 +3,6 @@ import { default as toWebVTT } from "srt-webvtt";
import type { import type {
FileBasedStream, FileBasedStream,
Qualities, Qualities,
RunnerOptions,
ScrapeMedia, ScrapeMedia,
Stream, Stream,
} from "@movie-web/providers"; } from "@movie-web/providers";
@@ -26,11 +25,7 @@ export async function getVideoStream({
consistentIpForRequests: true, consistentIpForRequests: true,
}); });
const options: RunnerOptions = { const result = await providers.runAll({ media });
media,
};
const result = await providers.runAll(options);
if (!result) return null; if (!result) return null;
if (forceVTT) { if (forceVTT) {