mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Update lookmovie.js
This commit is contained in:
parent
50ac4e4a66
commit
e850c8ff8d
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
import Fuse from 'fuse.js'
|
import Fuse from 'fuse.js'
|
||||||
import JSON5 from 'json5'
|
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}`;
|
const CORS_URL = `${process.env.REACT_APP_CORS_PROXY_URL}${BASE_URL}`;
|
||||||
let phpsessid;
|
let phpsessid;
|
||||||
|
|
||||||
|
@ -59,9 +60,9 @@ async function getVideoUrl(config) {
|
||||||
let url = '';
|
let url = '';
|
||||||
|
|
||||||
if (config.type === 'movie') {
|
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') {
|
} 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, {
|
const data = await fetch(url, {
|
||||||
|
|
Loading…
Reference in a new issue