add '_extractor' information to redirect results

This commit is contained in:
Mike Fährmann
2019-12-29 23:37:34 +01:00
parent 2d4887b75b
commit 1f2a69f3c5
4 changed files with 6 additions and 5 deletions

View File

@@ -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):