Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to skip private/deleted pixiv posts? And oauth help #2562

Closed
JacobDreiling opened this issue May 5, 2022 · 4 comments
Closed

How to skip private/deleted pixiv posts? And oauth help #2562

JacobDreiling opened this issue May 5, 2022 · 4 comments

Comments

@JacobDreiling
Copy link

While running through my bookmarks I received this error:

[pixiv][error] API request failed: {'user_message': 'Artist has made their work private.', 'message': '', 'reason': '', 'user_message_details': {}}

In my pixiv extractor I set "skip": "enumerate" to handle posts with multiple images. I'm not sure how to make it ignore deleted or private posts and continue downloading.

@JacobDreiling
Copy link
Author

JacobDreiling commented May 5, 2022

I checked and it seems like it successfully skipped several deleted posts before having this error. Now I'm even more confused.

edit: I think the issue is that I need to rerun gallery-dl oath:pixiv. However, after I log in, my browser says the address is invalid, and I can't see the element that has the code in the web inspector.

@JacobDreiling JacobDreiling changed the title How to skip private/deleted pixiv posts? How to skip private/deleted pixiv posts? And oath May 5, 2022
@JacobDreiling JacobDreiling changed the title How to skip private/deleted pixiv posts? And oath How to skip private/deleted pixiv posts? And oauth help May 5, 2022
@mikf
Copy link
Owner

mikf commented May 8, 2022

running through my bookmarks

What URL did you use? Your bookmarked artworks (https://www.pixiv.net/en/users/ID/bookmarks/artworks) or your followed artists (https://www.pixiv.net/en/users/ID/following)?
I'm asking because it sounds like you used the latter and this error happened with the very last artist. A verbose log would also be helpful to make sense of what exactly happened (--verbose)

In my pixiv extractor I set "skip": "enumerate" to handle posts with multiple images

It would be better to use a filename format string that has a different name for different files. Pixiv has many metadata fields that allow for that. Even the generic {filename}.{extension} is good enough here.

I think the issue is that I need to rerun gallery-dl oauth:pixiv

I don't think so. You wouldn't even get that far without having a working refresh-token from oauth:pixix.

If you still want to redo that, try it in a private browser windows. I've probably done this procedure at least 10 times across all issues and questions here to see if it still works and never had any problems when doing it in "Private Browsing" mode.

@JacobDreiling
Copy link
Author

I'll handle your response in reverse since the first bit is the primary issue.

You were right that I didn't need to run oauth. I only got errors when I didn't use my config file with my pixiv credentials. Sorry for the confusion.

I modified my format string so that I don't have to use "skip": "enumerate". Thank you for the advice!

I used the URL for my bookmarks (https://www.pixiv.net/en/users/ID/bookmarks/artworks). I just ran through them again, with verbose, and I got the same error after the same number of downloads:

[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/ugoira/metadata?illust_id=83993383 HTTP/1.1" 403 None
[pixiv][error] API request failed: {'user_message': 'Artist has made their work private.', 'message': '', 'reason': '', 'user_message_details': {}}

@mikf
Copy link
Owner

mikf commented May 17, 2022

Fixed in 6ae3a5c. It no longer stops when it can't retrieve an ugoira file.

@mikf mikf closed this as completed May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants