summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/hotleak.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/hotleak.py')
-rw-r--r--gallery_dl/extractor/hotleak.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/gallery_dl/extractor/hotleak.py b/gallery_dl/extractor/hotleak.py
index ddfc54b..587d88c 100644
--- a/gallery_dl/extractor/hotleak.py
+++ b/gallery_dl/extractor/hotleak.py
@@ -70,8 +70,7 @@ class HotleakPostExtractor(HotleakExtractor):
self.creator, self.type, self.id = match.groups()
def posts(self):
- url = "{}/{}/{}/{}".format(
- self.root, self.creator, self.type, self.id)
+ url = f"{self.root}/{self.creator}/{self.type}/{self.id}"
page = self.request(url).text
page = text.extr(
page, '<div class="movie-image thumb">', '</article>')
@@ -103,10 +102,10 @@ class HotleakCreatorExtractor(HotleakExtractor):
def __init__(self, match):
HotleakExtractor.__init__(self, match)
- self.creator = match.group(1)
+ self.creator = match[1]
def posts(self):
- url = "{}/{}".format(self.root, self.creator)
+ url = f"{self.root}/{self.creator}"
return self._pagination(url)
def _pagination(self, url):
@@ -159,7 +158,7 @@ class HotleakCategoryExtractor(HotleakExtractor):
self._category, self.params = match.groups()
def items(self):
- url = "{}/{}".format(self.root, self._category)
+ url = f"{self.root}/{self._category}"
if self._category in ("hot", "creators"):
data = {"_extractor": HotleakCreatorExtractor}
@@ -178,7 +177,7 @@ class HotleakSearchExtractor(HotleakExtractor):
def __init__(self, match):
HotleakExtractor.__init__(self, match)
- self.params = match.group(1)
+ self.params = match[1]
def items(self):
data = {"_extractor": HotleakCreatorExtractor}