[fallenangels] add chapter extractor
This commit is contained in:
@@ -21,6 +21,7 @@ modules = [
|
|||||||
"dynastyscans",
|
"dynastyscans",
|
||||||
"e621",
|
"e621",
|
||||||
"exhentai",
|
"exhentai",
|
||||||
|
"fallenangels",
|
||||||
"gelbooru",
|
"gelbooru",
|
||||||
"gomanga",
|
"gomanga",
|
||||||
"hbrowse",
|
"hbrowse",
|
||||||
|
|||||||
32
gallery_dl/extractor/fallenangels.py
Normal file
32
gallery_dl/extractor/fallenangels.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# -*- 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 http://famatg.com/"""
|
||||||
|
|
||||||
|
from .foolslide import FoolslideChapterExtractor
|
||||||
|
|
||||||
|
|
||||||
|
class FallenangelsChapterExtractor(FoolslideChapterExtractor):
|
||||||
|
"""Extractor for manga-chapters from famatg.com"""
|
||||||
|
category = "fallenangels"
|
||||||
|
pattern = [(r"(?:https?://)?((?:manga|truyen)\.famatg\.com/read/"
|
||||||
|
r"[^/]+/([a-z]{2})/\d+/\d+(?:/\d+)?)")]
|
||||||
|
test = [
|
||||||
|
("http://manga.famatg.com/read/chronos_ruler/en/0/20/", {
|
||||||
|
"url": "a777f93533674744b74c9b57c7dfa7254f5ddbed",
|
||||||
|
"keyword": "47ac083cac8a3c0aaf0f6b571a9bfb535217fd31",
|
||||||
|
}),
|
||||||
|
("https://truyen.famatg.com/read/madan_no_ou_to_vanadis/vi/0/33/", {
|
||||||
|
"url": "b46bf1ef0537c3ce42bf2b9e4b62ace41c2299cd",
|
||||||
|
"keyword": "9eb750934f4f712211f5a7063c2206693b7cedf9",
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
|
||||||
|
def __init__(self, match):
|
||||||
|
url = "https://" + match.group(1)
|
||||||
|
FoolslideChapterExtractor.__init__(self, url, match.group(2))
|
||||||
@@ -12,6 +12,7 @@ Supported Sites
|
|||||||
- dynasty-scans.com
|
- dynasty-scans.com
|
||||||
- e621.net
|
- e621.net
|
||||||
- exhentai.org
|
- exhentai.org
|
||||||
|
- famatg.com
|
||||||
- fapat.me
|
- fapat.me
|
||||||
- gelbooru.com
|
- gelbooru.com
|
||||||
- gomanga.co
|
- gomanga.co
|
||||||
@@ -36,7 +37,6 @@ Supported Sites
|
|||||||
- imgspice.com
|
- imgspice.com
|
||||||
- imgspot.org
|
- imgspot.org
|
||||||
- imgth.com
|
- imgth.com
|
||||||
- imgtrex.com
|
|
||||||
- imgtrial.com
|
- imgtrial.com
|
||||||
- imgupload.yt
|
- imgupload.yt
|
||||||
- imgur.com
|
- imgur.com
|
||||||
|
|||||||
Reference in New Issue
Block a user