add '_extractor' information to redirect results
This commit is contained in:
@@ -153,7 +153,7 @@ class ImgurAlbumExtractor(ImgurExtractor):
|
||||
"is_album" : True,
|
||||
"layout" : "blog",
|
||||
"link" : "https://imgur.com/a/TcBmP",
|
||||
"nsfw" : False,
|
||||
"nsfw" : True,
|
||||
"privacy" : "hidden",
|
||||
"section" : None,
|
||||
"title" : "138",
|
||||
|
||||
@@ -175,7 +175,7 @@ class PinterestPinitExtractor(PinterestExtractor):
|
||||
"https://pin.it/None",
|
||||
"https://www.pinterest.com"):
|
||||
raise exception.NotFoundError("pin")
|
||||
yield Message.Queue, location, {}
|
||||
yield Message.Queue, location, {"_extractor": PinterestPinExtractor}
|
||||
|
||||
|
||||
class PinterestAPI():
|
||||
|
||||
@@ -142,10 +142,11 @@ class PixivMeExtractor(PixivExtractor):
|
||||
|
||||
def items(self):
|
||||
url = "https://pixiv.me/" + self.account
|
||||
data = {"_extractor": PixivUserExtractor}
|
||||
response = self.request(
|
||||
url, method="HEAD", allow_redirects=False, notfound="user")
|
||||
yield Message.Version, 1
|
||||
yield Message.Queue, response.headers["Location"], {}
|
||||
yield Message.Queue, response.headers["Location"], data
|
||||
|
||||
|
||||
class PixivWorkExtractor(PixivExtractor):
|
||||
|
||||
@@ -69,8 +69,8 @@ class WikiartArtistExtractor(WikiartExtractor):
|
||||
directory_fmt = ("{category}", "{artist[artistName]}")
|
||||
pattern = BASE_PATTERN + r"/(?!\w+-by-)([\w-]+)"
|
||||
test = ("https://www.wikiart.org/en/thomas-cole", {
|
||||
"url": "f1eee8158f5b8b7380382ab730a8f53884715c8b",
|
||||
"keyword": "c61f5a4774b977106000e9554d19cfb9438a7032",
|
||||
"url": "9049e52e897b9ae6586df4c2c4f827d0a19dafa3",
|
||||
"keyword": "c3168b21a993707c41efb7674e8c90d53a79d483",
|
||||
})
|
||||
|
||||
def __init__(self, match):
|
||||
|
||||
Reference in New Issue
Block a user