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

Commit

Permalink
fix xyz
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 11, 2024
1 parent 7c573d6 commit 9ed7d96
Show file tree
Hide file tree
Showing 3 changed files with 10 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.2"
__version__ = "5.2.3"
10 changes: 8 additions & 2 deletions cyberdrop_dl/scraper/crawlers/rule34xyz_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,18 @@ async def file(self, scrape_item: ScrapeItem) -> None:

image = soup.select_one('img[class*="img shadow-base"]')
if image:
link = self.primary_base_url.with_path(image.get('src'))
link = image.get('src')
if link.startswith("/"):
link = f"{self.primary_base_url}{link}"
link = URL(link)
filename, ext = await get_filename_and_ext(link.name)
await self.handle_file(link, scrape_item, filename, ext)
video = soup.select_one("video source")
if video:
link = self.primary_base_url.with_path(video.get('src'))
link = video.get('src')
if link.startswith("/"):
link = f"{self.primary_base_url}{link}"
link = URL(link)
filename, ext = await get_filename_and_ext(link.name)
await self.handle_file(link, scrape_item, filename, ext)

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

0 comments on commit 9ed7d96

Please sign in to comment.