mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 03:05:05 +01:00
fix: Fix Lookmovie scraper
Only set phpsessid variable if returned as a header
This commit is contained in:
parent
9193db6f32
commit
62ca94e4b6
@ -147,7 +147,7 @@ async function getEpisodes(slug) {
|
||||
async function getStreamUrl(slug, type, season, episode) {
|
||||
const url = `${BASE_URL}/${type}s/view/${slug}`;
|
||||
const pageRes = await fetch(url);
|
||||
phpsessid = pageRes.headers.get('phpsessid');
|
||||
if (pageRes.headers.get('phpsessid')) phpsessid = pageRes.headers.get('phpsessid');
|
||||
const pageResText = await pageRes.text();
|
||||
|
||||
const data = JSON5.parse("{" +
|
||||
|
Loading…
Reference in New Issue
Block a user