1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[yomanga] add chapter extractor

This commit is contained in:
Mike Fährmann 2017-01-13 00:03:12 +01:00
parent ad4b02508f
commit cc0b4f2661
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
5 changed files with 32 additions and 11 deletions

View File

@ -49,10 +49,10 @@ Supported Sites
rule34.xxx, safebooru.org, chan.sankakucomplex.com, yande.re
* Manga:
bato.to, dynasty-scans.com, kissmanga.com, kobato.hologfx.com,
mangahere.co, mangamint.com, mangapanda.com, mangapark.me, mangareader.net,
mangashare.com, mangastream.com, powermanga.org, raw.senmanga.com,
reader.sensescans.com, thespectrum.net, slide.world-three.org,
yonkouprod.com
gomanga.co, mangahere.co, mangamint.com, mangapanda.com, mangapark.me,
mangareader.net, mangashare.com, mangastream.com, powermanga.org,
raw.senmanga.com, reader.sensescans.com, thespectrum.net,
slide.world-three.org, yomanga.co, yonkouprod.com
* Comic:
kisscomic.us, readcomiconline.to, readcomics.tv
* Hentai:

View File

@ -67,6 +67,7 @@ modules = [
"whentai",
"worldthree",
"yandere",
"yomanga",
"yonkouprod",
"imagehosts",
"recursive",

View File

@ -10,14 +10,11 @@
import time
import queue
import logging
import requests
import threading
from .message import Message
from .. import config
log = logging.getLogger(__name__)
class Extractor():
@ -96,7 +93,4 @@ def safe_request(session, url, method="GET", *args, **kwargs):
continue
# everything ok -- proceed to download
log.debug(url)
log.debug(r.headers)
log.debug(r.text)
return r

View File

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Copyright 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
# published by the Free Software Foundation.
"""Extract manga-chapters from https://yomanga.co/"""
from .foolslide import FoolslideChapterExtractor
class YomangaChapterExtractor(FoolslideChapterExtractor):
"""Extractor for manga-chapters from yomanga.co"""
category = "yomanga"
pattern = [(r"(?:https?://)?(?:www\.)?(yomanga\.co/reader/read/"
r"[^/]+/([a-z]{2})/\d+/\d+)")]
test = [("https://yomanga.co/reader/read/uwakoi/en/0/2/", {
"url": "4b5d8fc5902f03647cc876cf6643849e5bc05455",
"keyword": "1b9ac4217146421dbcb2a1108693054c56554a9d",
})]
single = False
def __init__(self, match):
url = "https://" + match.group(1)
FoolslideChapterExtractor.__init__(self, url, match.group(2))

View File

@ -55,7 +55,7 @@ if __name__ == '__main__' and len(sys.argv) > 1:
]
del sys.argv[1:]
skip = []
skip = ["exhentai", "kissmanga"]
for extr in extractors:
if extr.category in skip:
continue