Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: path concat (pixeldrain) (#24)

NTFSvolumefebd51efc217
diff --git a/cyberdrop_dl/crawlers/pixeldrain.py b/cyberdrop_dl/crawlers/pixeldrain.py
index 75f3f9e28..831f44ba1 100644
--- a/cyberdrop_dl/crawlers/pixeldrain.py
+++ b/cyberdrop_dl/crawlers/pixeldrain.py
@@ -182,7 +182,7 @@ class PixelDrainCrawler(Crawler):
origin = scrape_item.url.origin()
async def request_fs(path: str) -> FileSystem:
- api_url = (origin / "api/filesystem" / path).with_query("stat")
+ api_url = (origin / "api/filesystem" / path.removeprefix("/")).with_query("stat")
content = await self._api_request(api_url)
return FileSystem.model_validate_json(content)