From 2a632c9bfdfaecc35bb5f49fc9f0b934b667fe9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 26 Oct 2016 23:10:41 +0200 Subject: [PATCH] [worldthree] add chapter extractor --- gallery_dl/extractor/__init__.py | 1 + gallery_dl/extractor/worldthree.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gallery_dl/extractor/worldthree.py diff --git a/gallery_dl/extractor/__init__.py b/gallery_dl/extractor/__init__.py index 6fe917ce..34040b64 100644 --- a/gallery_dl/extractor/__init__.py +++ b/gallery_dl/extractor/__init__.py @@ -70,6 +70,7 @@ modules = [ "turboimagehost", "twitter", "whentai", + "worldthree", "yandere", "recursive", ] diff --git a/gallery_dl/extractor/worldthree.py b/gallery_dl/extractor/worldthree.py new file mode 100644 index 00000000..d4c60854 --- /dev/null +++ b/gallery_dl/extractor/worldthree.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- + +# Copyright 2016 Mike Fährmann +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. + +"""Extract manga-chapters from http://www.slide.world-three.org/""" + +from .foolslide import FoolslideChapterExtractor + +class WorldthreeChapterExtractor(FoolslideChapterExtractor): + """Extractor for manga-chapters from slide.world-three.org""" + category = "worldthree" + pattern = [(r"(?:https?://)?(?:www\.)?(slide\.world-three\.org/read/" + r"[^/]+/([a-z]{2})/\d+/\d+)")] + + def __init__(self, match): + url = "http://" + match.group(1) + FoolslideChapterExtractor.__init__(self, url, match.group(2))