[worldthree] add chapter extractor

This commit is contained in:
Mike Fährmann
2016-10-26 23:10:41 +02:00
parent 91c446805b
commit 2a632c9bfd
2 changed files with 22 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ modules = [
"turboimagehost",
"twitter",
"whentai",
"worldthree",
"yandere",
"recursive",
]

View File

@@ -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))