Skip to content

Commit 093437f

Browse files
authored
Merge pull request #6 from RobinLaevaert/AddBetterLastEpisodeChecker
Add better last episode checker
2 parents 02f275e + 7a382de commit 093437f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GoGoDownloader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def gogodownloader(config):
5050
if res.status_code == 200:
5151
soup = BeautifulSoup(res.content, "html.parser")
5252
all_episodes = soup.find("ul", {"id": "episode_page"})
53-
all_episodes = int(all_episodes.get_text().split("-")[-1].strip())
53+
all_episodes = int(list(filter(None, "-".join(all_episodes.get_text().splitlines()).split("-")))[-1].strip())
5454
break
5555
else:
5656
print(f"{ERR}Error 404: Anime not found. Please try again.")

0 commit comments

Comments
 (0)