2015-10-08 20:43:52 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2018-02-09 21:51:35 +01:00
|
|
|
# Copyright 2015-2018 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-20 13:20:41 +02:00
|
|
|
"""Extractors for https://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")
|
2018-03-13 13:11:10 +01:00
|
|
|
test = [(("https://read.powermanga.org"
|
|
|
|
"/read/one_piece_digital_colour_comics/en/0/75/"), {
|
|
|
|
"url": "854c5817f8f767e1bccd05fa9d58ffb5a4b09384",
|
2018-04-29 21:27:25 +02:00
|
|
|
"keyword": "9985bcb78491dff9c725958b06bba606be51b6d3",
|
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")
|
2018-03-13 13:11:10 +01:00
|
|
|
test = [(("https://read.powermanga.org"
|
|
|
|
"/series/one_piece_digital_colour_comics/"), {
|
2018-02-09 21:51:35 +01:00
|
|
|
"count": ">= 1",
|
|
|
|
"keyword": {
|
|
|
|
"chapter": int,
|
|
|
|
"chapter_minor": str,
|
|
|
|
"chapter_string": str,
|
|
|
|
"group": "PowerManga",
|
|
|
|
"lang": "en",
|
|
|
|
"language": "English",
|
2018-03-13 13:11:10 +01:00
|
|
|
"manga": "One Piece Digital Colour Comics",
|
2018-02-09 21:51:35 +01:00
|
|
|
"title": str,
|
|
|
|
"volume": int,
|
|
|
|
},
|
2017-04-11 21:03:40 +02:00
|
|
|
})]
|