Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
feat: add support to direct image (pixhost) (#1471)
Barbarella66666664056a9d4d62b
diff --git a/cyberdrop_dl/crawlers/pixhost.py b/cyberdrop_dl/crawlers/pixhost.pyindex 52a0fef5a..147ee4971 100644--- a/cyberdrop_dl/crawlers/pixhost.py+++ b/cyberdrop_dl/crawlers/pixhost.py@@ -44,6 +44,8 @@ class PixHostCrawler(Crawler):return await self.gallery(scrape_item, gallery_id)case ["show", _, *_]:return await self.image(scrape_item)+ case ["images", _, *_]:+ return await self.direct_file(scrape_item)case _:raise ValueErrordiff --git a/tests/crawlers/test_cases/pixhost.py b/tests/crawlers/test_cases/pixhost.pyindex 8dbcf6707..afa94a14e 100644--- a/tests/crawlers/test_cases/pixhost.py+++ b/tests/crawlers/test_cases/pixhost.py@@ -35,4 +35,15 @@ TEST_CASES = [],7,),+ # Direct image+ (+ "https://img0.pixhost.to/images/647/527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",+ [+ {+ "url": "https://img0.pixhost.to/images/647/527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",+ "filename": "527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",+ "referer": "https://img0.pixhost.to/images/647/527555752_clips4sale-com-2023-09-29-angel-the-dreamgirl-her-horniness-and-lust-can.jpg",+ },+ ],+ ),]