aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/chevereto.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-10-07 02:11:52 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-10-07 02:11:52 -0400
commit83e1e051b8c0e622ef5f61c1955c47b4bde95b57 (patch)
tree544a434cb398d2adb8b8a2d553dc1c9a44b4ee1d /gallery_dl/extractor/chevereto.py
parentf1612851ae9fe68c7444fb31e786503868aeaa7c (diff)
parentbbe7fac03d881662a458e7fbf870c9d71f5257f4 (diff)
Update upstream source from tag 'upstream/1.30.9'
Update to upstream version '1.30.9' with Debian dir 46cc56e13f05f4465cc64f67b4d7b775a95bd87a
Diffstat (limited to 'gallery_dl/extractor/chevereto.py')
-rw-r--r--gallery_dl/extractor/chevereto.py20
1 files changed, 9 insertions, 11 deletions
diff --git a/gallery_dl/extractor/chevereto.py b/gallery_dl/extractor/chevereto.py
index 67fdb39..1552899 100644
--- a/gallery_dl/extractor/chevereto.py
+++ b/gallery_dl/extractor/chevereto.py
@@ -40,19 +40,15 @@ class CheveretoExtractor(BaseExtractor):
BASE_PATTERN = CheveretoExtractor.update({
"jpgfish": {
"root": "https://jpg6.su",
- "pattern": r"jpe?g\d?\.(?:su|pet|fish(?:ing)?|church)",
- },
- "imgkiwi": {
- "root": "https://img.kiwi",
- "pattern": r"img\.kiwi",
+ "pattern": r"(?:www\.)?jpe?g\d?\.(?:su|pet|fish(?:ing)?|church)",
},
"imagepond": {
"root": "https://imagepond.net",
- "pattern": r"imagepond\.net",
+ "pattern": r"(?:www\.)?imagepond\.net",
},
"imglike": {
"root": "https://imglike.com",
- "pattern": r"imglike\.com",
+ "pattern": r"(?:www\.)?imglike\.com",
},
})
@@ -79,7 +75,7 @@ class CheveretoImageExtractor(CheveretoExtractor):
fromhex=True)
file = {
- "id" : self.path.rpartition(".")[2],
+ "id" : self.path.rpartition("/")[2].rpartition(".")[2],
"url" : url,
"album": text.remove_html(extr(
"Added to <a", "</a>").rpartition(">")[2]),
@@ -144,7 +140,8 @@ class CheveretoAlbumExtractor(CheveretoExtractor):
def items(self):
url = self.root + self.path
- data = {"_extractor": CheveretoImageExtractor}
+ data_image = {"_extractor": CheveretoImageExtractor}
+ data_video = {"_extractor": CheveretoVideoExtractor}
if self.path.endswith("/sub"):
albums = self._pagination(url)
@@ -152,8 +149,9 @@ class CheveretoAlbumExtractor(CheveretoExtractor):
albums = (url,)
for album in albums:
- for image in self._pagination(album):
- yield Message.Queue, image, data
+ for item_url in self._pagination(album):
+ data = data_video if "/video/" in item_url else data_image
+ yield Message.Queue, item_url, data
class CheveretoCategoryExtractor(CheveretoExtractor):