summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/hotleak.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
commit7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch)
tree4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/extractor/hotleak.py
parente59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff)
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/extractor/hotleak.py')
-rw-r--r--gallery_dl/extractor/hotleak.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/gallery_dl/extractor/hotleak.py b/gallery_dl/extractor/hotleak.py
index d6575cf..01ad38c 100644
--- a/gallery_dl/extractor/hotleak.py
+++ b/gallery_dl/extractor/hotleak.py
@@ -44,7 +44,7 @@ class HotleakExtractor(Extractor):
for item in text.extract_iter(
page, '<article class="movie-item', '</article>'):
- yield text.extract(item, '<a href="', '"')[0]
+ yield text.extr(item, '<a href="', '"')
params["page"] += 1
@@ -87,8 +87,8 @@ class HotleakPostExtractor(HotleakExtractor):
url = "{}/{}/{}/{}".format(
self.root, self.creator, self.type, self.id)
page = self.request(url).text
- page = text.extract(
- page, '<div class="movie-image thumb">', '</article>')[0]
+ page = text.extr(
+ page, '<div class="movie-image thumb">', '</article>')
data = {
"id" : text.parse_int(self.id),
"creator": self.creator,
@@ -96,12 +96,12 @@ class HotleakPostExtractor(HotleakExtractor):
}
if self.type == "photo":
- data["url"] = text.extract(page, 'data-src="', '"')[0]
+ data["url"] = text.extr(page, 'data-src="', '"')
text.nameext_from_url(data["url"], data)
elif self.type == "video":
- data["url"] = "ytdl:" + text.extract(
- text.unescape(page), '"src":"', '"')[0]
+ data["url"] = "ytdl:" + text.extr(
+ text.unescape(page), '"src":"', '"')
text.nameext_from_url(data["url"], data)
data["extension"] = "mp4"