Skip to content

Bulk asynchronous downloader for multiple file hosts

Update gofile_crawler.py

Jacobe11d3fd958ca
diff --git a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
index a9c2e70ff..fe43297b9 100644
--- a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
@@ -58,9 +58,9 @@ class GoFileCrawler(Crawler):
try:
async with self.request_limiter:
JSON_Resp = await self.client.get_json(self.domain,
- (self.api_address / "contents" / content_id).with_query(
- {"wt": self.websiteToken, "password": password}),
- headers_inc=self.headers, origin=scrape_item)
+ (self.api_address / "contents" / content_id).with_query(
+ {"wt": self.websiteToken, "password": password}),
+ headers_inc=self.headers, origin=scrape_item)
except DownloadFailure as e:
if e.status == http.HTTPStatus.UNAUTHORIZED:
self.websiteToken = ""
@@ -68,9 +68,9 @@ class GoFileCrawler(Crawler):
await self.get_website_token(self.js_address, self.client)
async with self.request_limiter:
JSON_Resp = await self.client.get_json(self.domain,
- (self.api_address / "contents" / content_id).with_query(
- {"wt": self.websiteToken, "password": password}),
- headers_inc=self.headers, origin=scrape_item)
+ (self.api_address / "contents" / content_id).with_query(
+ {"wt": self.websiteToken, "password": password}),
+ headers_inc=self.headers, origin=scrape_item)
else:
raise ScrapeFailure(e.status, e.message, origin=scrape_item)