31 lines
1020 B
Python
Raw Normal View History

2017-01-13 00:03:12 +01:00
# -*- coding: utf-8 -*-
# Copyright 2017 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.
"""Extractors for https://yomanga.co/"""
2017-01-13 00:03:12 +01:00
from . import foolslide
2017-01-13 00:03:12 +01:00
2017-02-01 00:53:19 +01:00
class YomangaChapterExtractor(foolslide.FoolslideChapterExtractor):
2017-01-13 00:03:12 +01:00
"""Extractor for manga-chapters from yomanga.co"""
category = "yomanga"
pattern = foolslide.chapter_pattern(r"(?:www\.)?yomanga\.co/reader")
2017-01-13 00:03:12 +01:00
test = [("https://yomanga.co/reader/read/uwakoi/en/0/2/", {
"url": "4b5d8fc5902f03647cc876cf6643849e5bc05455",
})]
single = False
class YomangaMangaExtractor(foolslide.FoolslideMangaExtractor):
"""Extractor for manga from yomanga.co"""
category = "yomanga"
pattern = foolslide.manga_pattern(r"(?:www\.)?yomanga\.co/reader")
test = [("https://yomanga.co/reader/series/6_weapons/", {
"url": "19a4828d3a06a4c89c885847c83af54ec1add0f7",
})]