Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix traceback (nugget caught in get)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Feb 16, 2024
1 parent 52ac534 commit 7e09906
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.71"
__version__ = "5.1.72"
4 changes: 2 additions & 2 deletions cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def fetch(self, scrape_item: ScrapeItem) -> None:

await self.set_cookies()

if "get" in scrape_item.url.host:
if scrape_item.url.host.startswith("get"):
scrape_item.url = await self.reinforced_link(scrape_item.url)
scrape_item.url = await self.get_stream_link(scrape_item.url)

Expand Down Expand Up @@ -167,7 +167,7 @@ async def reinforced_link(self, url: URL) -> URL:

async def get_stream_link(self, url: URL) -> URL:
"""Gets the stream link for a given url"""
cdn_possibilities = r"^(?:(?:(?:media-files|cdn|c|pizza|cdn-burger|cdn-nugget|burger|taquito|pizza|fries|meatballs|milkshake|kebab)[0-9]{0,2})|(?:(?:big-taco-|cdn-pizza|cdn-meatballs|cdn-milkshake|i.kebab|i.fries)[0-9]{0,2}(?:redir)?))\.bunkr?\.[a-z]{2,3}$"
cdn_possibilities = r"^(?:(?:(?:media-files|cdn|c|pizza|cdn-burger|cdn-nugget|burger|taquito|pizza|fries|meatballs|milkshake|kebab)[0-9]{0,2})|(?:(?:big-taco-|cdn-pizza|cdn-meatballs|cdn-milkshake|i.kebab|i.fries|i-nugget)[0-9]{0,2}(?:redir)?))\.bunkr?\.[a-z]{2,3}$"

if not re.match(cdn_possibilities, url.host):
return url
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.1.71"
version = "5.1.72"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 7e09906

Please sign in to comment.