Merge pull request #32 from JoshHeng/patch-1

fix: Fix Lookmovie scraper
This commit is contained in:
James Hawkins 2021-09-27 15:30:27 +01:00 committed by GitHub
commit 295c7b3cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("{" +