Skip to content

Bulk asynchronous downloader for multiple file hosts

Detect private gofile folders

Jacob96064496b6f0
diff --git a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
index 649fb7acb..9b5224ce6 100644
--- a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
@@ -68,6 +68,9 @@ class GoFileCrawler(Crawler):
if "password" in JSON_Resp:
raise PasswordProtected()
+ if JSON_Resp["canAccess"] is False:
+ raise ScrapeFailure(403, "Album is private")
+
title = await self.create_title(JSON_Resp["name"], content_id, None)
contents = JSON_Resp["children"]