Skip to content

Commit

Permalink
Added 3 servers. StreamSB (server #1) is the only server you can use …
Browse files Browse the repository at this point in the history
…to download as the moment. Gogo Server 2 (server #3) is still broken still finding a way to bypass error 403.
  • Loading branch information
sh1nobuu committed Dec 28, 2021
1 parent a2b5cbe commit c15bed4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ async def get_download_urls(self, download_links: list) -> list[list[str, str]]:
return download_urls

def download_episodes(self, download_url: str) -> None:
print(download_url)
header = {
"Host": "gogo-cdn.com",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0",
Expand Down Expand Up @@ -139,8 +138,6 @@ async def get_real_download_urls(self, link: str) -> str:
download_link = url.format(
download_link[0], download_link[1], download_link[2]
)
#!DELETE THIS LATER
print(download_link)
async with session.get(download_link) as response:
soup = BeautifulSoup(await response.content.read(), "html.parser")
direct_link = soup.find("span").find("a").get("href")
Expand Down Expand Up @@ -242,8 +239,6 @@ async def get_download_urls(
text=re.compile(fr"\b{self.episode_quality}\b"),
attrs={"class": "dowload"},
)
#!DELETE THIS LATER
print(link.a.get("href"))

return [
download_link.split("+")[-1],
Expand Down
2 changes: 1 addition & 1 deletion src/bitanime.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from aiohttp import ClientSession
from bs4 import BeautifulSoup
from tqdm.contrib.concurrent import thread_map
from bd import Download, CustomMessage, ServerStatus
from backend import Download, CustomMessage, ServerStatus

colorama.init(autoreset=True)

Expand Down

0 comments on commit c15bed4

Please sign in to comment.