aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/cyberdrop.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/cyberdrop.py')
-rw-r--r--gallery_dl/extractor/cyberdrop.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/extractor/cyberdrop.py b/gallery_dl/extractor/cyberdrop.py
index e150829..b3944f7 100644
--- a/gallery_dl/extractor/cyberdrop.py
+++ b/gallery_dl/extractor/cyberdrop.py
@@ -32,7 +32,7 @@ class CyberdropAlbumExtractor(lolisafe.LolisafeAlbumExtractor):
yield Message.Url, file["url"], file
def fetch_album(self, album_id):
- url = "{}/a/{}".format(self.root, album_id)
+ url = f"{self.root}/a/{album_id}"
page = self.request(url).text
extr = text.extract_from(page)
@@ -60,9 +60,9 @@ class CyberdropAlbumExtractor(lolisafe.LolisafeAlbumExtractor):
def _extract_files(self, file_ids):
for file_id in file_ids:
try:
- url = "{}/api/file/info/{}".format(self.root_api, file_id)
- file = self.request(url).json()
- auth = self.request(file["auth_url"]).json()
+ url = f"{self.root_api}/api/file/info/{file_id}"
+ file = self.request_json(url)
+ auth = self.request_json(file["auth_url"])
file["url"] = auth["url"]
except Exception as exc:
self.log.warning("%s (%s: %s)",