1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Update lookmovie.js

This commit is contained in:
James Hawkins 2021-12-29 13:01:53 +00:00 committed by GitHub
parent 50ac4e4a66
commit e850c8ff8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, {