chore: adjust fuction name

This commit is contained in:
Adrian Castro
2024-02-11 15:05:37 +01:00
parent 69e6e4ea25
commit c52c3309fe
2 changed files with 5 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import * as ScreenOrientation from "expo-screen-orientation";
import {
findHighestQuality,
getVideoUrl,
getVideoStream,
transformSearchResultToScrapeMedia,
} from "@movie-web/provider-utils";
import { fetchMediaDetails } from "@movie-web/tmdb";
@@ -67,7 +67,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({ data }) => {
episode,
);
const stream = await getVideoUrl(scrapeMedia);
const stream = await getVideoStream(scrapeMedia);
if (!stream) {
await ScreenOrientation.lockAsync(
ScreenOrientation.OrientationLock.PORTRAIT_UP,

View File

@@ -11,7 +11,9 @@ import {
targets,
} from "@movie-web/providers";
export async function getVideoUrl(media: ScrapeMedia): Promise<Stream | null> {
export async function getVideoStream(
media: ScrapeMedia,
): Promise<Stream | null> {
const providers = makeProviders({
fetcher: makeStandardFetcher(fetch),
target: targets.NATIVE,