[kissmanga] re-enable module
This commit is contained in:
@@ -80,6 +80,7 @@ Supported Sites
|
|||||||
* nijie.info
|
* nijie.info
|
||||||
* bato.to
|
* bato.to
|
||||||
* mangastream.com
|
* mangastream.com
|
||||||
|
* kissmanga.com
|
||||||
* readcomiconline.to
|
* readcomiconline.to
|
||||||
* danbooru.donmai.us
|
* danbooru.donmai.us
|
||||||
* gelbooru.com
|
* gelbooru.com
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ modules = [
|
|||||||
"jaiminisbox",
|
"jaiminisbox",
|
||||||
"khinsider",
|
"khinsider",
|
||||||
"kisscomic",
|
"kisscomic",
|
||||||
|
"kissmanga",
|
||||||
"konachan",
|
"konachan",
|
||||||
"luscious",
|
"luscious",
|
||||||
"mangafox",
|
"mangafox",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2015, 2016 Mike Fährmann
|
# Copyright 2015-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
|
||||||
@@ -9,9 +9,20 @@
|
|||||||
"""Extract manga-chapters and entire manga from http://kissmanga.com/"""
|
"""Extract manga-chapters and entire manga from http://kissmanga.com/"""
|
||||||
|
|
||||||
from .common import Extractor, Message
|
from .common import Extractor, Message
|
||||||
from .. import text, cloudflare
|
from .. import text, cloudflare, aes
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
KEY = [
|
||||||
|
9, 156, 103, 232, 193, 166, 41, 125,
|
||||||
|
179, 74, 152, 145, 228, 219, 228, 25,
|
||||||
|
22, 110, 191, 123, 177, 27, 111, 71,
|
||||||
|
173, 92, 161, 63, 162, 175, 84, 24,
|
||||||
|
]
|
||||||
|
IV = [
|
||||||
|
165, 232, 226, 233, 194, 114, 27, 224,
|
||||||
|
168, 74, 214, 96, 196, 114, 193, 243,
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class KissmangaExtractor(Extractor):
|
class KissmangaExtractor(Extractor):
|
||||||
"""Base class for kissmanga extractors"""
|
"""Base class for kissmanga extractors"""
|
||||||
@@ -96,4 +107,7 @@ class KissmangaChapterExtractor(KissmangaExtractor):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_image_urls(page):
|
def get_image_urls(page):
|
||||||
"""Extract list of all image-urls for a manga chapter"""
|
"""Extract list of all image-urls for a manga chapter"""
|
||||||
return list(text.extract_iter(page, 'lstImages.push("', '"'))
|
return [
|
||||||
|
aes.aes_cbc_decrypt_text(data, KEY, IV)
|
||||||
|
for data in text.extract_iter(page, 'lstImages.push(wrapKA("', '"')
|
||||||
|
]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- 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
|
||||||
@@ -60,3 +60,8 @@ class ReadcomiconlineIssueExtractor(ReadcomiconlineExtractor,
|
|||||||
"lang": "en",
|
"lang": "en",
|
||||||
"language": "English",
|
"language": "English",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def get_image_urls(page):
|
||||||
|
"""Extract list of all image-urls for a manga chapter"""
|
||||||
|
return list(text.extract_iter(page, 'lstImages.push("', '"'))
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ Supported Sites
|
|||||||
- jaiminisbox.com
|
- jaiminisbox.com
|
||||||
- khinsider.com
|
- khinsider.com
|
||||||
- kisscomic.us
|
- kisscomic.us
|
||||||
|
- kissmanga.com
|
||||||
- kobato.hologfx.com
|
- kobato.hologfx.com
|
||||||
- konachan.com
|
- konachan.com
|
||||||
- luscious.net
|
- luscious.net
|
||||||
|
|||||||
Reference in New Issue
Block a user