[erolord] remove extractor
This commit is contained in:
@@ -27,7 +27,6 @@ Doki Reader https://kobato.hologfx.com/reader/ Chapters, Manga
|
|||||||
Dynasty Reader https://dynasty-scans.com/ Chapters, individual Images, Search Results
|
Dynasty Reader https://dynasty-scans.com/ Chapters, individual Images, Search Results
|
||||||
E-Hentai https://e-hentai.org/ Favorites, Galleries, Search Results Optional
|
E-Hentai https://e-hentai.org/ Favorites, Galleries, Search Results Optional
|
||||||
e621 https://e621.net/ Pools, Popular Images, Posts, Tag-Searches
|
e621 https://e621.net/ Pools, Popular Images, Posts, Tag-Searches
|
||||||
EroLord.com http://erolord.com/ Galleries
|
|
||||||
ExHentai https://exhentai.org/ Favorites, Galleries, Search Results Optional
|
ExHentai https://exhentai.org/ Favorites, Galleries, Search Results Optional
|
||||||
Fallen Angels Scans https://www.fascans.com/ Chapters, Manga
|
Fallen Angels Scans https://www.fascans.com/ Chapters, Manga
|
||||||
Fashion Nova https://www.fashionnova.com/ Collections, Products
|
Fashion Nova https://www.fashionnova.com/ Collections, Products
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2015-2019 Mike Fährmann
|
# Copyright 2015-2020 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
|
||||||
@@ -25,7 +25,6 @@ modules = [
|
|||||||
"deviantart",
|
"deviantart",
|
||||||
"dynastyscans",
|
"dynastyscans",
|
||||||
"e621",
|
"e621",
|
||||||
"erolord",
|
|
||||||
"exhentai",
|
"exhentai",
|
||||||
"fallenangels",
|
"fallenangels",
|
||||||
"flickr",
|
"flickr",
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
# Copyright 2019 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 images from http://erolord.com/"""
|
|
||||||
|
|
||||||
from .common import GalleryExtractor
|
|
||||||
from .. import text, util
|
|
||||||
import json
|
|
||||||
|
|
||||||
|
|
||||||
class ErolordGalleryExtractor(GalleryExtractor):
|
|
||||||
"""Extractor for image galleries from erolord.com"""
|
|
||||||
category = "erolord"
|
|
||||||
root = "http://erolord.com"
|
|
||||||
pattern = r"(?:https?://)?(?:www\.)?erolord.com(/doujin/(\d+)/?)"
|
|
||||||
test = ("http://erolord.com/doujin/2189055/", {
|
|
||||||
"url": "7ce6d10a3934102b95c9718a34ccd3d35f55d85f",
|
|
||||||
"keyword": {
|
|
||||||
"title" : "Amazon No Hiyaku | Amazon Elixir",
|
|
||||||
"gallery_id": 2189055,
|
|
||||||
"count" : 16,
|
|
||||||
"artist" : ["Morris"],
|
|
||||||
"group" : list,
|
|
||||||
"parody" : list,
|
|
||||||
"characters": list,
|
|
||||||
"tags" : list,
|
|
||||||
"lang" : "en",
|
|
||||||
"language" : "English",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
def __init__(self, match):
|
|
||||||
GalleryExtractor.__init__(self, match)
|
|
||||||
self.gallery_id = match.group(2)
|
|
||||||
|
|
||||||
def metadata(self, page):
|
|
||||||
extr = text.extract_from(page)
|
|
||||||
split = text.split_html
|
|
||||||
title, _, language = extr('<h1 class="t64">', '</h1>').rpartition(" ")
|
|
||||||
language = language.strip("[]")
|
|
||||||
|
|
||||||
return {
|
|
||||||
"gallery_id": text.parse_int(self.gallery_id),
|
|
||||||
"title" : text.unescape(title),
|
|
||||||
# double quotes for anime, circle, tags
|
|
||||||
# single quotes for characters, artist
|
|
||||||
"parody" : split(extr('class="sp1">Anime:' , "</div>\r")),
|
|
||||||
"characters": split(extr("class='sp1'>Characters:", "</div>\r")),
|
|
||||||
"artist" : split(extr("class='sp1'>Artist:" , "</div>\r")),
|
|
||||||
"group" : split(extr('class="sp1">Circle:' , "</div>\r")),
|
|
||||||
"tags" : split(extr('class="sp1">Tags:' , "</div>\r")),
|
|
||||||
"lang" : util.language_to_code(language),
|
|
||||||
"language" : language,
|
|
||||||
}
|
|
||||||
|
|
||||||
def images(self, page):
|
|
||||||
url = self.root + text.extract(page, 'id="d1"><a href="', '"')[0]
|
|
||||||
imgs = text.extract(self.request(url).text, 'var imgs=', ';')[0]
|
|
||||||
return [(self.root + path, None) for path in json.loads(imgs)]
|
|
||||||
@@ -23,7 +23,6 @@ CATEGORY_MAP = {
|
|||||||
"dokireader" : "Doki Reader",
|
"dokireader" : "Doki Reader",
|
||||||
"dynastyscans" : "Dynasty Reader",
|
"dynastyscans" : "Dynasty Reader",
|
||||||
"e621" : "e621",
|
"e621" : "e621",
|
||||||
"erolord" : "EroLord.com",
|
|
||||||
"e-hentai" : "E-Hentai",
|
"e-hentai" : "E-Hentai",
|
||||||
"exhentai" : "ExHentai",
|
"exhentai" : "ExHentai",
|
||||||
"fallenangels" : "Fallen Angels Scans",
|
"fallenangels" : "Fallen Angels Scans",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2015-2019 Mike Fährmann
|
# Copyright 2015-2020 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
|
||||||
@@ -26,7 +26,6 @@ TRAVIS_SKIP = {
|
|||||||
|
|
||||||
# temporary issues, etc.
|
# temporary issues, etc.
|
||||||
BROKEN = {
|
BROKEN = {
|
||||||
"erolord",
|
|
||||||
"mangapark",
|
"mangapark",
|
||||||
"photobucket",
|
"photobucket",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user