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

Commit

Permalink
Fix bunkr reinforced for zips.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed May 5, 2024
1 parent b4157c0 commit e03fe8f
Show file tree
Hide file tree
Showing 3 changed files with 7 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.2.52"
__version__ = "5.2.53"
7 changes: 5 additions & 2 deletions cyberdrop_dl/scraper/crawlers/bunkrr_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ async def reinforced_link(self, url: URL) -> URL:
"""get.bunkr.su"""
async with self.request_limiter:
soup = await self.client.get_BS4(self.domain, url)

link_container = soup.select('a[download*=""]')[-1]

try:
link_container = soup.select('a[download*=""]')[-1]
except IndexError:
link_container = soup.select('a[class*=download]')[-1]
link = URL(link_container.get('href'))
return link

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.2.52"
version = "5.2.53"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit e03fe8f

Please sign in to comment.