[pixiv] fix user id for bookmarks API calls (closes #596)
This commit is contained in:
@@ -27,7 +27,7 @@ class PixivExtractor(Extractor):
|
|||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
Extractor.__init__(self, match)
|
Extractor.__init__(self, match)
|
||||||
self.api = PixivAppAPI(self)
|
self.api = PixivAppAPI(self)
|
||||||
self.user_id = -1
|
self.user_id = None
|
||||||
self.load_ugoira = self.config("ugoira", True)
|
self.load_ugoira = self.config("ugoira", True)
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
@@ -241,6 +241,10 @@ class PixivFavoriteExtractor(PixivExtractor):
|
|||||||
("https://www.pixiv.net/bookmark.php", {
|
("https://www.pixiv.net/bookmark.php", {
|
||||||
"url": "90c1715b07b0d1aad300bce256a0bc71f42540ba",
|
"url": "90c1715b07b0d1aad300bce256a0bc71f42540ba",
|
||||||
}),
|
}),
|
||||||
|
# own bookmarks with tag (#596)
|
||||||
|
("https://www.pixiv.net/bookmark.php?tag=foobar", {
|
||||||
|
"count": 0,
|
||||||
|
}),
|
||||||
# followed users (#515)
|
# followed users (#515)
|
||||||
("https://www.pixiv.net/en/users/173530/following", {
|
("https://www.pixiv.net/en/users/173530/following", {
|
||||||
"pattern": PixivUserExtractor.pattern,
|
"pattern": PixivUserExtractor.pattern,
|
||||||
@@ -261,7 +265,7 @@ class PixivFavoriteExtractor(PixivExtractor):
|
|||||||
|
|
||||||
if query:
|
if query:
|
||||||
self.query = text.parse_query(query)
|
self.query = text.parse_query(query)
|
||||||
uid = self.query.get("id", -1)
|
uid = self.query.get("id")
|
||||||
if not uid:
|
if not uid:
|
||||||
self.subcategory = "bookmark"
|
self.subcategory = "bookmark"
|
||||||
elif self.query.get("type") == "user":
|
elif self.query.get("type") == "user":
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ TRAVIS_SKIP = {
|
|||||||
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie", "bobx",
|
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie", "bobx",
|
||||||
"archivedmoe", "archiveofsins", "thebarchive", "fireden", "4plebs",
|
"archivedmoe", "archiveofsins", "thebarchive", "fireden", "4plebs",
|
||||||
"sankaku", "idolcomplex", "mangahere", "readcomiconline", "mangadex",
|
"sankaku", "idolcomplex", "mangahere", "readcomiconline", "mangadex",
|
||||||
"sankakucomplex", "warosu", "fuskator", "patreon",
|
"sankakucomplex", "warosu", "fuskator", "patreon", "komikcast",
|
||||||
}
|
}
|
||||||
|
|
||||||
# temporary issues, etc.
|
# temporary issues, etc.
|
||||||
|
|||||||
Reference in New Issue
Block a user