[kissmanga] re-enable module

pull/13/head
Mike Fährmann 8 years ago
parent c9738ea80b
commit f537ad5f2f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -80,6 +80,7 @@ Supported Sites
* nijie.info
* bato.to
* mangastream.com
* kissmanga.com
* readcomiconline.to
* danbooru.donmai.us
* gelbooru.com

@ -38,6 +38,7 @@ modules = [
"jaiminisbox",
"khinsider",
"kisscomic",
"kissmanga",
"konachan",
"luscious",
"mangafox",

@ -1,6 +1,6 @@
# -*- 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
# 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/"""
from .common import Extractor, Message
from .. import text, cloudflare
from .. import text, cloudflare, aes
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):
"""Base class for kissmanga extractors"""
@ -96,4 +107,7 @@ class KissmangaChapterExtractor(KissmangaExtractor):
@staticmethod
def get_image_urls(page):
"""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 -*-
# Copyright 2016 Mike Fährmann
# Copyright 2016-2017 Mike Fährmann
#
# 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
@ -60,3 +60,8 @@ class ReadcomiconlineIssueExtractor(ReadcomiconlineExtractor,
"lang": "en",
"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
- khinsider.com
- kisscomic.us
- kissmanga.com
- kobato.hologfx.com
- konachan.com
- luscious.net

Loading…
Cancel
Save