mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:33:26 +00:00
chore: cleanup
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user