[readcomiconline] use HTTPS
This commit is contained in:
@@ -83,7 +83,7 @@ class MangaparkChapterExtractor(MangaparkExtractor, ChapterExtractor):
|
|||||||
test = [
|
test = [
|
||||||
("https://mangapark.me/manga/gosu/s2/c55", {
|
("https://mangapark.me/manga/gosu/s2/c55", {
|
||||||
"count": 50,
|
"count": 50,
|
||||||
"keyword": "5454f37e6ca4113c5639c9bdad5185ccdce4bb10",
|
"keyword": "72ac1714b492b021a1fe26d9271ed132d51a930e",
|
||||||
}),
|
}),
|
||||||
(("https://mangapark.me/manga/"
|
(("https://mangapark.me/manga/"
|
||||||
"ad-astra-per-aspera-hata-kenjirou/s5/c1.2"), {
|
"ad-astra-per-aspera-hata-kenjirou/s5/c1.2"), {
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class PiczelImageExtractor(PiczelExtractor):
|
|||||||
subcategory = "image"
|
subcategory = "image"
|
||||||
pattern = [r"(?:https?://)?(?:www\.)?piczel\.tv/gallery/image/(\d+)"]
|
pattern = [r"(?:https?://)?(?:www\.)?piczel\.tv/gallery/image/(\d+)"]
|
||||||
test = [("https://piczel.tv/gallery/image/7807", {
|
test = [("https://piczel.tv/gallery/image/7807", {
|
||||||
"url": "c8caccac9fa798dc4fd4b920890e4d8b42cb44e5",
|
"url": "9b9e416b6ab7e58676fab84453d5028f306ece34",
|
||||||
"content": "df9a053a24234474a19bce2b7e27e0dec23bff87",
|
"content": "df9a053a24234474a19bce2b7e27e0dec23bff87",
|
||||||
"keyword": {
|
"keyword": {
|
||||||
"created_at": "2018-07-22T05:13:58.000Z",
|
"created_at": "2018-07-22T05:13:58.000Z",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class ReadcomiconlineBase():
|
|||||||
directory_fmt = ["{category}", "{comic}", "{issue:>03}"]
|
directory_fmt = ["{category}", "{comic}", "{issue:>03}"]
|
||||||
filename_fmt = "{comic}_{issue:>03}_{page:>03}.{extension}"
|
filename_fmt = "{comic}_{issue:>03}_{page:>03}.{extension}"
|
||||||
archive_fmt = "{issue_id}_{page}"
|
archive_fmt = "{issue_id}_{page}"
|
||||||
root = "http://readcomiconline.to"
|
root = "https://readcomiconline.to"
|
||||||
useragent = "Wget/1.19.2 (linux-gnu)"
|
useragent = "Wget/1.19.2 (linux-gnu)"
|
||||||
|
|
||||||
request = cloudflare.request_func
|
request = cloudflare.request_func
|
||||||
@@ -28,21 +28,22 @@ class ReadcomiconlineBase():
|
|||||||
class ReadcomiconlineComicExtractor(ReadcomiconlineBase, MangaExtractor):
|
class ReadcomiconlineComicExtractor(ReadcomiconlineBase, MangaExtractor):
|
||||||
"""Extractor for comics from readcomiconline.to"""
|
"""Extractor for comics from readcomiconline.to"""
|
||||||
subcategory = "comic"
|
subcategory = "comic"
|
||||||
pattern = [r"(?i)(?:https?://)?(?:www\.)?(readcomiconline\.to"
|
pattern = [r"(?i)(?:https?://)?(?:www\.)?readcomiconline\.to"
|
||||||
r"/Comic/[^/?&#]+/?)$"]
|
r"(/Comic/[^/?&#]+/?)$"]
|
||||||
test = [
|
test = [
|
||||||
("http://readcomiconline.to/Comic/W-i-t-c-h", {
|
("https://readcomiconline.to/Comic/W-i-t-c-h", {
|
||||||
"url": "c5a530538a30b176916e30cbe223a93d83cb2691",
|
"url": "e231bc2a293edb465133c37a8e36a7e7d94cab14",
|
||||||
"keyword": "3986248e4458fa44a201ec073c3684917f48ee0c",
|
"keyword": "3986248e4458fa44a201ec073c3684917f48ee0c",
|
||||||
}),
|
}),
|
||||||
("http://readcomiconline.to/Comic/Bazooka-Jules", {
|
("https://readcomiconline.to/Comic/Bazooka-Jules", {
|
||||||
"url": "e517dca61dff489f18ca781084f59a9eeb60a6b6",
|
"url": "711674cb78ed10bd2557315f7a67552d01b33985",
|
||||||
"keyword": "f5ba5246cd787bb750924d9690cb1549199bd516",
|
"keyword": "f5ba5246cd787bb750924d9690cb1549199bd516",
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
|
scheme = "https"
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
MangaExtractor.__init__(self, match)
|
MangaExtractor.__init__(self, match, self.root + match.group(1))
|
||||||
self.session.headers["User-Agent"] = self.useragent
|
self.session.headers["User-Agent"] = self.useragent
|
||||||
|
|
||||||
def chapters(self, page):
|
def chapters(self, page):
|
||||||
@@ -66,15 +67,15 @@ class ReadcomiconlineIssueExtractor(ReadcomiconlineBase, ChapterExtractor):
|
|||||||
"""Extractor for comic-issues from readcomiconline.to"""
|
"""Extractor for comic-issues from readcomiconline.to"""
|
||||||
subcategory = "issue"
|
subcategory = "issue"
|
||||||
pattern = [r"(?i)(?:https?://)?(?:www\.)?readcomiconline\.to"
|
pattern = [r"(?i)(?:https?://)?(?:www\.)?readcomiconline\.to"
|
||||||
r"/Comic/[^/?&#]+/[^/?&#]+\?id=(\d+)"]
|
r"(/Comic/[^/?&#]+/[^/?&#]+\?id=(\d+))"]
|
||||||
test = [("http://readcomiconline.to/Comic/W-i-t-c-h/Issue-130?id=22289", {
|
test = [("https://readcomiconline.to/Comic/W-i-t-c-h/Issue-130?id=22289", {
|
||||||
"url": "2bbab6ec4fbc05d269cca420a82a9b5acda28682",
|
"url": "2bbab6ec4fbc05d269cca420a82a9b5acda28682",
|
||||||
"keyword": "c6de1c9c8a307dc4be56783c4ac6f1338ffac6fc",
|
"keyword": "c6de1c9c8a307dc4be56783c4ac6f1338ffac6fc",
|
||||||
})]
|
})]
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
ChapterExtractor.__init__(self, match.group(0))
|
ChapterExtractor.__init__(self, self.root + match.group(1))
|
||||||
self.issue_id = match.group(1)
|
self.issue_id = match.group(2)
|
||||||
self.session.headers["User-Agent"] = self.useragent
|
self.session.headers["User-Agent"] = self.useragent
|
||||||
|
|
||||||
def get_metadata(self, page):
|
def get_metadata(self, page):
|
||||||
|
|||||||
Reference in New Issue
Block a user