Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
missionfloyd committed Sep 19, 2024
1 parent 78c3467 commit b6bb20b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gallery_dl/extractor/girlsreleased.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""Extractors for https://girlsreleased.com/"""

from .common import Extractor, Message
from .. import text

BASE_PATTERN = r"(?:https?://)?(?:www\.)?girlsreleased\.com"

Expand Down Expand Up @@ -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:]
Expand Down Expand Up @@ -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):
Expand All @@ -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/{}")
1 change: 0 additions & 1 deletion test/results/girlsreleased.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@
"#category": ("", "girlsreleased", "model"),
"#class" : girlsreleased.GirlsreleasedSiteExtractor,
},

)

0 comments on commit b6bb20b

Please sign in to comment.