[sensescans support http://sensescans.com/reader/... URLs
This commit is contained in:
@@ -1,27 +1,32 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2016 Mike Fährmann
|
# Copyright 2016-2017 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
"""Extract manga-chapters from http://reader.sensescans.com/"""
|
"""Extract manga-chapters from http://sensescans.com/"""
|
||||||
|
|
||||||
from .foolslide import FoolslideChapterExtractor
|
from .foolslide import FoolslideChapterExtractor
|
||||||
|
|
||||||
|
|
||||||
class SensescansChapterExtractor(FoolslideChapterExtractor):
|
class SensescansChapterExtractor(FoolslideChapterExtractor):
|
||||||
"""Extractor for manga-chapters from reader.sensescans.com"""
|
"""Extractor for manga-chapters from sensescans.com"""
|
||||||
category = "sensescans"
|
category = "sensescans"
|
||||||
pattern = [(r"(?:https?://)?(reader\.sensescans\.com/read/"
|
pattern = [(r"(?:https?://)?(?:www\.|reader\.)?sensescans\.com/"
|
||||||
r"[^/]+/([a-z]{2})/\d+/\d+)")]
|
r"(?:reader/)?read/([^/]+/([a-z]{2})/\d+/\d+)")]
|
||||||
test = [(("http://reader.sensescans.com/read/"
|
test = [
|
||||||
"magi__labyrinth_of_magic/en/33/319/page/1"), {
|
(("http://reader.sensescans.com/read/"
|
||||||
"url": "fff6186aca61017aeb5c743cdfccac4b9b1f2557",
|
"magi__labyrinth_of_magic/en/33/319/page/1"), {
|
||||||
"keyword": "77f906f04bf49d3bd636e8c92d85dc25aa361754",
|
"url": "cc192cbeed36127d374926c50c3a4bd06092b760",
|
||||||
})]
|
"keyword": "77f906f04bf49d3bd636e8c92d85dc25aa361754"}),
|
||||||
|
(("http://sensescans.com/reader/read/"
|
||||||
|
"magi__labyrinth_of_magic/en/33/319/page/1"), {
|
||||||
|
"url": "cc192cbeed36127d374926c50c3a4bd06092b760",
|
||||||
|
"keyword": "77f906f04bf49d3bd636e8c92d85dc25aa361754"}),
|
||||||
|
]
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
url = "http://" + match.group(1)
|
url = "http://sensescans.com/reader/read/" + match.group(1)
|
||||||
FoolslideChapterExtractor.__init__(self, url, match.group(2))
|
FoolslideChapterExtractor.__init__(self, url, match.group(2))
|
||||||
|
|||||||
@@ -67,10 +67,10 @@ Supported Sites
|
|||||||
- raw.senmanga.com
|
- raw.senmanga.com
|
||||||
- readcomiconline.to
|
- readcomiconline.to
|
||||||
- readcomics.tv
|
- readcomics.tv
|
||||||
- reader.sensescans.com
|
|
||||||
- rule34.xxx
|
- rule34.xxx
|
||||||
- safebooru.org
|
- safebooru.org
|
||||||
- seiga.nicovideo.jp
|
- seiga.nicovideo.jp
|
||||||
|
- sensescans.com
|
||||||
- slide.world-three.org
|
- slide.world-three.org
|
||||||
- thespectrum.net
|
- thespectrum.net
|
||||||
- tumblr.com
|
- tumblr.com
|
||||||
|
|||||||
Reference in New Issue
Block a user