2015-10-08 20:43:52 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
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
|
|
|
# Copyright 2015-2017 Mike Fährmann
|
2015-10-08 20:43:52 +02:00
|
|
|
#
|
|
|
|
# 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 http://powermanga.org/"""
|
2015-10-08 20:43:52 +02: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-02-01 00:53:19 +01:00
|
|
|
|
2015-10-08 20:43:52 +02: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 PowermangaChapterExtractor(foolslide.FoolslideChapterExtractor):
|
2016-09-12 10:20:57 +02:00
|
|
|
"""Extractor for manga-chapters from powermanga.org"""
|
2015-11-21 04:32:32 +01:00
|
|
|
category = "powermanga"
|
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"read(?:er)?\.powermanga\.org")
|
2016-02-18 15:58:14 +01:00
|
|
|
test = [("https://read.powermanga.org/read/one_piece/en/0/803/page/1", {
|
2015-12-13 04:36:44 +01:00
|
|
|
"url": "e6179c1565068f99180620281f86bdd25be166b4",
|
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
|
|
|
"keyword": "203ea5d0ef7759f4517316f0678f3592fc27cdbe",
|
2015-12-13 04:36:44 +01:00
|
|
|
})]
|
2017-04-11 21:03:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
class PowermangaMangaExtractor(foolslide.FoolslideMangaExtractor):
|
|
|
|
"""Extractor for manga from powermanga.org"""
|
|
|
|
category = "powermanga"
|
|
|
|
pattern = foolslide.manga_pattern(r"read\.powermanga\.org")
|
|
|
|
test = [("http://read.powermanga.org/series/my_hero_academia/", {
|
|
|
|
"url": "3c7004eea7eefc8d365af3ec95ba98f8cc359553",
|
|
|
|
})]
|