diff options
| author | 2025-07-31 01:22:01 -0400 | |
|---|---|---|
| committer | 2025-07-31 01:22:01 -0400 | |
| commit | a6e995c093de8aae2e91a0787281bb34c0b871eb (patch) | |
| tree | 2d79821b05300d34d8871eb6c9662b359a2de85d /gallery_dl/extractor/lolisafe.py | |
| parent | 7672a750cb74bf31e21d76aad2776367fd476155 (diff) | |
New upstream version 1.30.2.upstream/1.30.2
Diffstat (limited to 'gallery_dl/extractor/lolisafe.py')
| -rw-r--r-- | gallery_dl/extractor/lolisafe.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/extractor/lolisafe.py b/gallery_dl/extractor/lolisafe.py index 6a9f633..5233033 100644 --- a/gallery_dl/extractor/lolisafe.py +++ b/gallery_dl/extractor/lolisafe.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2021-2023 Mike Fährmann +# Copyright 2021-2025 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -63,7 +63,7 @@ class LolisafeAlbumExtractor(LolisafeExtractor): file["filename"] = file["name"] + "-" + fid elif "id" in file: file["name"] = file["filename"] - file["filename"] = "{}-{}".format(file["name"], file["id"]) + file["filename"] = f"{file['name']}-{file['id']}" else: file["name"], sep, file["id"] = \ file["filename"].rpartition("-") @@ -71,8 +71,8 @@ class LolisafeAlbumExtractor(LolisafeExtractor): yield Message.Url, url, file def fetch_album(self, album_id): - url = "{}/api/album/get/{}".format(self.root, album_id) - data = self.request(url).json() + url = f"{self.root}/api/album/get/{album_id}" + data = self.request_json(url) return data["files"], { "album_id" : self.album_id, |
