From e850c8ff8d13620f0445a088bff3f7b4f42e8a37 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Wed, 29 Dec 2021 13:01:53 +0000 Subject: [PATCH] Update lookmovie.js --- src/lib/scraper/lookmovie.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/scraper/lookmovie.js b/src/lib/scraper/lookmovie.js index 52c19fe1..d7fe7981 100644 --- a/src/lib/scraper/lookmovie.js +++ b/src/lib/scraper/lookmovie.js @@ -1,7 +1,8 @@ import Fuse from 'fuse.js' import JSON5 from 'json5' -const BASE_URL = `https://lookmovie125.xyz`; +const BASE_URL = `https://lookmovie.io`; +const API_URL = `${process.env.REACT_APP_CORS_PROXY_URL}https://lookmovie125.xyz`; const CORS_URL = `${process.env.REACT_APP_CORS_PROXY_URL}${BASE_URL}`; let phpsessid; @@ -59,9 +60,9 @@ async function getVideoUrl(config) { let url = ''; if (config.type === 'movie') { - url = `${CORS_URL}/api/v1/security/movie-access?id_movie=${config.id}&token=1&sk=&step=1`; + url = `${API_URL}/api/v1/security/movie-access?id_movie=${config.id}&token=1&sk=&step=1`; } else if (config.type === 'show') { - url = `${CORS_URL}/api/v1/security/episode-access?id_episode=${config.id}`; + url = `${API_URL}/api/v1/security/episode-access?id_episode=${config.id}`; } const data = await fetch(url, {