2017-01-10 00:05:08 +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.
|
|
|
|
|
2017-04-11 21:03:40 +02:00
|
|
|
"""Extractors for https://gomanga.co/"""
|
2017-01-10 00:05:08 +01:00
|
|
|
|
improved foolslide-based extractors
- this includes dokireader, fallenangels, jaiminisbox, powermanga,
sensescans, worldthree, yonkouprod, gomanga, yomanga
- added 'chapter_string', 'chapter_id', 'chapter_minor' and 'count'
keywords
- changed the 'chapter' keyword to always be just a number
- changed the default directory format
2017-02-16 23:42:30 +01:00
|
|
|
from . import foolslide
|
2017-01-10 00:05:08 +01:00
|
|
|
|
2017-02-01 00:53:19 +01:00
|
|
|
|
improved foolslide-based extractors
- this includes dokireader, fallenangels, jaiminisbox, powermanga,
sensescans, worldthree, yonkouprod, gomanga, yomanga
- added 'chapter_string', 'chapter_id', 'chapter_minor' and 'count'
keywords
- changed the 'chapter' keyword to always be just a number
- changed the default directory format
2017-02-16 23:42:30 +01:00
|
|
|
class GomangaChapterExtractor(foolslide.FoolslideChapterExtractor):
|
2017-01-10 00:05:08 +01:00
|
|
|
"""Extractor for manga-chapters from gomanga.co"""
|
|
|
|
category = "gomanga"
|
improved foolslide-based extractors
- this includes dokireader, fallenangels, jaiminisbox, powermanga,
sensescans, worldthree, yonkouprod, gomanga, yomanga
- added 'chapter_string', 'chapter_id', 'chapter_minor' and 'count'
keywords
- changed the 'chapter' keyword to always be just a number
- changed the default directory format
2017-02-16 23:42:30 +01:00
|
|
|
pattern = foolslide.chapter_pattern(r"(?:www\.)?gomanga\.co/reader")
|
|
|
|
test = [
|
|
|
|
("https://gomanga.co/reader/read/mata-kata-omou/en/0/1/page/11", {
|
|
|
|
"url": "5088d75bb44327fc503c85b52b1d6a371b8057f2",
|
|
|
|
"keyword": "f534cfc4c3aef87cb0439e2a37e2ebee98077e92",
|
|
|
|
}),
|
|
|
|
("https://gomanga.co/reader/read/pastel/en/31/144/", {
|
|
|
|
"url": "9cc2052fbf36344c573c754c5abe533a14b3e280",
|
|
|
|
"keyword": "a2ef55d26984c64baf026382f889bb013d01dc4f",
|
|
|
|
}),
|
|
|
|
]
|
2017-01-10 00:05:08 +01:00
|
|
|
single = False
|
2017-04-11 21:03:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
class GomangaMangaExtractor(foolslide.FoolslideMangaExtractor):
|
|
|
|
"""Extractor for manga from gomanga.co"""
|
|
|
|
category = "gomanga"
|
|
|
|
pattern = foolslide.manga_pattern(r"(?:www\.)?gomanga\.co/reader")
|
|
|
|
test = [("https://gomanga.co/reader/series/pastel/", {
|
|
|
|
"url": "bd1c82d70838d54140a8209296e789f27ceab7cd",
|
|
|
|
})]
|
|
|
|
single = False
|