mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Merge pull request #32 from JoshHeng/patch-1
fix: Fix Lookmovie scraper
This commit is contained in:
commit
295c7b3cfb
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ async function getEpisodes(slug) {
|
||||||
async function getStreamUrl(slug, type, season, episode) {
|
async function getStreamUrl(slug, type, season, episode) {
|
||||||
const url = `${BASE_URL}/${type}s/view/${slug}`;
|
const url = `${BASE_URL}/${type}s/view/${slug}`;
|
||||||
const pageRes = await fetch(url);
|
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 pageResText = await pageRes.text();
|
||||||
|
|
||||||
const data = JSON5.parse("{" +
|
const data = JSON5.parse("{" +
|
||||||
|
|
Loading…
Reference in a new issue