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