mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 04:55:07 +01:00
Fixes
This commit is contained in:
parent
ce571326e7
commit
c16374d5c8
@ -62,9 +62,9 @@ async function getEpisodes(slug) {
|
|||||||
let seasons = [];
|
let seasons = [];
|
||||||
let episodes = [];
|
let episodes = [];
|
||||||
|
|
||||||
for (let i = 0; i < sNodes.length; i++) {
|
for (let s of sNodes) {
|
||||||
const text = sNodes[i].querySelector('div > section > div > div > div > h2 > a').textContent;
|
const text = s.querySelector('div > section > div > div > div > h2 > a').textContent;
|
||||||
if (!text.includes('Season')) return;
|
if (!text.includes('Season')) continue;
|
||||||
|
|
||||||
const season = text.split(' ')[1];
|
const season = text.split(' ')[1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user