From b6bb20b48412b1d441bc4a4c6290e271d8fc81db Mon Sep 17 00:00:00 2001 From: missionfloyd Date: Wed, 18 Sep 2024 23:40:44 -0600 Subject: [PATCH] Lint --- gallery_dl/extractor/girlsreleased.py | 8 ++++---- test/results/girlsreleased.py | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gallery_dl/extractor/girlsreleased.py b/gallery_dl/extractor/girlsreleased.py index f367b69dca6..ea8f947277d 100644 --- a/gallery_dl/extractor/girlsreleased.py +++ b/gallery_dl/extractor/girlsreleased.py @@ -9,7 +9,6 @@ """Extractors for https://girlsreleased.com/""" from .common import Extractor, Message -from .. import text BASE_PATTERN = r"(?:https?://)?(?:www\.)?girlsreleased\.com" @@ -40,7 +39,8 @@ def _pagination(self, url): sets = [] page = 0 while True: - json = self.request(f"{url}/page/{page}").json()["sets"] + print(page) + json = self.request(url.format(self.root, self.id, page)).json()["sets"] if not json: return sets sets += json[1:] @@ -75,7 +75,7 @@ class GirlsreleasedModelExtractor(GirlsreleasedExtractor): example = "https://girlsreleased.com/model/12345/MODEL" def sets(self): - return self._pagination(f"{self.root}/sets/model/{self.id}") + return self._pagination("{}/sets/model/{}/page/{}") class GirlsreleasedSiteExtractor(GirlsreleasedExtractor): @@ -85,4 +85,4 @@ class GirlsreleasedSiteExtractor(GirlsreleasedExtractor): example = "https://girlsreleased.com/site/SITE" def sets(self): - return self._pagination(f"{self.root}/sets/site/{self.id}") + return self._pagination("{}/sets/site/{}/page/{}") diff --git a/test/results/girlsreleased.py b/test/results/girlsreleased.py index f3f90c4845e..b8bae09597e 100644 --- a/test/results/girlsreleased.py +++ b/test/results/girlsreleased.py @@ -49,5 +49,4 @@ "#category": ("", "girlsreleased", "model"), "#class" : girlsreleased.GirlsreleasedSiteExtractor, }, - )