[imgtrex] remove extractor - domain no longer exists
This commit is contained in:
@@ -26,8 +26,8 @@ class HentaifoundryUserExtractor(Extractor):
|
|||||||
]
|
]
|
||||||
test = [
|
test = [
|
||||||
("http://www.hentai-foundry.com/pictures/user/Tenpura", {
|
("http://www.hentai-foundry.com/pictures/user/Tenpura", {
|
||||||
"url": "95d44a26498ae4a73963e6fd03ea5e0e624f14a0",
|
"url": "20100bca8e31c172f9034157a9833d5af2a9c097",
|
||||||
"keyword": "6937c20b3afe5a0af741cc1c419994dd041c8395",
|
"keyword": "cd15dcfc0f5ddc259ce0752105f30f66c1895c28",
|
||||||
}),
|
}),
|
||||||
("http://www.hentai-foundry.com/user/asdq/profile", {
|
("http://www.hentai-foundry.com/user/asdq/profile", {
|
||||||
"exception": exception.NotFoundError,
|
"exception": exception.NotFoundError,
|
||||||
|
|||||||
@@ -279,23 +279,6 @@ class ImgspiceImageExtractor(ImagehostImageExtractor):
|
|||||||
return "http://img" + url, text.unescape(filename)
|
return "http://img" + url, text.unescape(filename)
|
||||||
|
|
||||||
|
|
||||||
class ImgtrexImageExtractor(ImagehostImageExtractor):
|
|
||||||
"""Extractor for single images from imgtrex.com"""
|
|
||||||
category = "imgtrex"
|
|
||||||
pattern = [r"(?:https?://)?((?:www\.)?imgtrex\.com/([^/]+))"]
|
|
||||||
test = [("http://imgtrex.com/im0ypxq0rke4/test-テスト-&<a>.png", {
|
|
||||||
"url": "c000618bddda42bd599a590b7972c7396d19d8fe",
|
|
||||||
"keyword": "58905795a9cd3f17d5ff024fc4d63645795ba23c",
|
|
||||||
"content": "0c8768055e4e20e7c7259608b67799171b691140",
|
|
||||||
})]
|
|
||||||
params = None
|
|
||||||
|
|
||||||
def get_info(self, page):
|
|
||||||
filename, pos = text.extract(page, '<title>ImgTrex: ', '</title>')
|
|
||||||
url , pos = text.extract(page, '<br>\n<img src="', '"', pos)
|
|
||||||
return url, filename
|
|
||||||
|
|
||||||
|
|
||||||
class PixhostImageExtractor(ImagehostImageExtractor):
|
class PixhostImageExtractor(ImagehostImageExtractor):
|
||||||
"""Extractor for single images from pixhost.org"""
|
"""Extractor for single images from pixhost.org"""
|
||||||
category = "pixhost"
|
category = "pixhost"
|
||||||
|
|||||||
Reference in New Issue
Block a user