diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index b3654723b1b..6c6d5c70331 100644 --- a/docs/supportedsites.rst +++ b/docs/supportedsites.rst @@ -67,7 +67,7 @@ Sankaku Channel https://chan.sankakucomplex.com/ Pools, Posts, Tag-Searc Sea Otter Scans https://reader.seaotterscans.com/ Chapters, Manga Sen Manga http://raw.senmanga.com/ Chapters Sense-Scans http://sensescans.com/ Chapters, Manga -Simply Hentai https://www.simply-hentai.com/ Galleries +Simply Hentai https://www.simply-hentai.com/ Galleries, individual Images, Videos SlideShare https://www.slideshare.net/ Presentations SmugMug https://www.smugmug.com/ |Albums, individ-5| Optional (OAuth) Subapics https://subapics.com/ Chapters, Manga diff --git a/gallery_dl/extractor/simplyhentai.py b/gallery_dl/extractor/simplyhentai.py index 1f5ec6721bf..c84fdf8396c 100644 --- a/gallery_dl/extractor/simplyhentai.py +++ b/gallery_dl/extractor/simplyhentai.py @@ -20,7 +20,8 @@ class SimplyhentaiGalleryExtractor(ChapterExtractor): filename_fmt = "{category}_{gallery_id}_{page:>03}.{extension}" archive_fmt = "{image_id}" pattern = [r"(?:https?://)?(?!videos\.)([\w-]+\.simply-hentai\.com" - r"(?:/(?!page|series|album|all-pages|image|gif)[^/?]+)+)"] + r"(?!/(?:album|gif|image|series)/)" + r"(?:/(?!(?:page|all-pages)/)[^/?]+)+)"] test = [ (("https://original-work.simply-hentai.com" "/amazon-no-hiyaku-amazon-elixir"), { @@ -119,3 +120,62 @@ def items(self): yield Message.Version, 1 yield Message.Directory, data yield Message.Url, url, data + + +class SimplyhentaiVideoExtractor(Extractor): + """Extractor for hentai videos from simply-hentai.com""" + category = "simplyhentai" + subcategory = "video" + directory_fmt = ["{category}", "{type}s"] + filename_fmt = "{title}{episode:?_//>02}.{extension}" + archive_fmt = "{title}_{episode}" + pattern = [r"(?:https?://)?(videos\.simply-hentai\.com/[^/?]+)"] + test = [ + ("https://videos.simply-hentai.com/creamy-pie-episode-02", { + "pattern": r"https://www\.googleapis\.com/drive/v3/files" + r"/0B1ecQ8ZVLm3JcHZzQzBnVy1ZUmc\?alt=media&key=[\w-]+", + "keyword": "315201bd4f3ce6bff57f4fbc631788c004d0eb7d", + "count": 1, + }), + (("https://videos.simply-hentai.com" + "/1715-tifa-in-hentai-gang-bang-3d-movie"), { + "url": "ad9a36ae06c601b6490e3c401834b4949d947eb0", + "keyword": "fef03513d5e1a9958d63e45a1d583e2f658b1168", + }), + ] + + def __init__(self, match): + Extractor.__init__(self) + self.url = "https://" + match.group(1) + + def items(self): + page = self.request(self.url).text + + title, pos = text.extract(page, "