We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02f275e + 7a382de commit 093437fCopy full SHA for 093437f
GoGoDownloader.py
@@ -50,7 +50,7 @@ def gogodownloader(config):
50
if res.status_code == 200:
51
soup = BeautifulSoup(res.content, "html.parser")
52
all_episodes = soup.find("ul", {"id": "episode_page"})
53
- all_episodes = int(all_episodes.get_text().split("-")[-1].strip())
+ all_episodes = int(list(filter(None, "-".join(all_episodes.get_text().splitlines()).split("-")))[-1].strip())
54
break
55
else:
56
print(f"{ERR}Error 404: Anime not found. Please try again.")
0 commit comments