Skip to content

Commit

Permalink
[hotleak] fix AttributeError (#5950)
Browse files Browse the repository at this point in the history
fixes regression introduced in 0432e05
  • Loading branch information
mikf committed Aug 7, 2024
1 parent ff4e53a commit 575e5df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/hotleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class HotleakExtractor(Extractor):

def items(self):
for post in self.posts():
if self.type == "photo":
if not post["url"].startswith("ytdl:"):
post["url"] = (
post["url"]
.replace("/storage/storage/", "/storage/")
Expand Down
8 changes: 4 additions & 4 deletions test/results/hotleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
"#url" : "https://hotleak.vip/kaiyakawaii/photo/1617145",
"#category": ("", "hotleak", "post"),
"#class" : hotleak.HotleakPostExtractor,
"#pattern" : r"https://hotleak\.vip/storage/images/3625/1617145/fefdd5988dfcf6b98cc9e11616018868\.jpg",
"#urls" : "https://image-cdn.hotleak.vip/storage/images/e98/18ad68/18ad68.webp",

"id" : 1617145,
"creator" : "kaiyakawaii",
"type" : "photo",
"filename" : "fefdd5988dfcf6b98cc9e11616018868",
"extension": "jpg",
"filename" : "18ad68",
"extension": "webp",
},

{
"#url" : "https://hotleak.vip/lilmochidoll/video/1625538",
"#category": ("", "hotleak", "post"),
"#class" : hotleak.HotleakPostExtractor,
"#pattern" : r"ytdl:https://cdn8-leak\.camhdxx\.com/1661/1625538/index\.m3u8",
"#pattern" : r"ytdl:https://cdn\d+-leak\.camhdxx\.com/.+,\d+/1661/1625538/index\.m3u8",

"id" : 1625538,
"creator" : "lilmochidoll",
Expand Down

0 comments on commit 575e5df

Please sign in to comment.