diff --git a/images/ba-screenshot-updated.png b/images/ba-screenshot-updated.png new file mode 100644 index 0000000..de59640 Binary files /dev/null and b/images/ba-screenshot-updated.png differ diff --git a/images/downloaded.PNG b/images/downloaded.PNG new file mode 100644 index 0000000..cc56f1c Binary files /dev/null and b/images/downloaded.PNG differ diff --git a/src/backend.py b/src/backend.py index f460738..3599707 100644 --- a/src/backend.py +++ b/src/backend.py @@ -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: @@ -41,10 +41,10 @@ def get_download_links(episode_link): return link.a.get("href") else: pass - + 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") @@ -62,4 +62,4 @@ def download_episodes(url): episode_name = f"{url.split('-')[-2]}.mp4" file_name = os.path.join(folder_path, episode_name) with open(file_name, "wb") as file: - shutil.copyfileobj(url_resp.raw, file) \ No newline at end of file + shutil.copyfileobj(url_resp.raw, file)