Removed the 1 to 99 episodes limit

This commit is contained in:
sh1nobu 2021-09-07 16:20:35 +08:00
parent 1626601b56
commit 89301e6f19
3 changed files with 5 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
images/downloaded.PNG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 KiB

View File

@ -23,7 +23,7 @@ def get_links(name, episode_number, source=None):
def get_download_links(episode_link):
episode_link_resp = requests.get(episode_link, stream=True)
episode_link_resp = requests.get(episode_link)
soup = BeautifulSoup(episode_link_resp.content, "html.parser")
exist = soup.find("h1", {"class": "entry-title"})
if exist is None:
@ -33,7 +33,7 @@ def get_download_links(episode_link):
else:
# 404
episode_link = f"{episode_link}-"
episode_link_resp = requests.get(episode_link, stream=True)
episode_link_resp = requests.get(episode_link)
soup = BeautifulSoup(episode_link_resp.content, "html.parser")
exist = soup.find("h1", {"class": "entry-title"})
if exist is None:
@ -44,7 +44,7 @@ def get_download_links(episode_link):
def get_download_urls(download_link):
link = requests.get(download_link, stream=True)
link = requests.get(download_link)
soup = BeautifulSoup(link.content, "html.parser")
link = soup.find_all("div", {"class": "dowload"})
return link[0].a.get("href")