-
-
Notifications
You must be signed in to change notification settings - Fork 976
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
Issue with Danbooru #1004
Comments
Please provide the exact entry that caused this error, and do as the command prompts you, run it with That said, I'm currently testing this ( |
The images are being downloaded to be used in a dataset for training an AI model for upscaling anime styled images. Anyhow, running with "gallery-dl "https://danbooru.donmai.us/posts?tags=azur_lane" --verbose", it stops here: "# .\gallery-dl\danbooru\azur_lane\danbooru_3818910_9d109b6197ea8b8316370da4d0b7fe9b.png" And here's the error using the verbose command (I did originally use the verbose command, when I made the post, but i forgot to mention so. oops.): "[danbooru][error] An unexpected error occurred: KeyError - 'id'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues . |
The purpose of the --verbose flag is to print the exact python version and OS, it shows at the top of the command. Anyway, the # means it was downloaded, so the error is for the next one in line. I guess the output just isn't clear enough o n this, and testing this myself (first with --simulate, then with --no-download) I found the exact entry, but I can't figure out how to the proper ID from it.
EDIT: Looking at https://danbooru.donmai.us/posts.json?tags=azur_lane&limit=200&page=50 and looking at the last entry shows that it lacks an ID and has {
"created_at": "2020-05-02T13:09:59.253-04:00",
"uploader_id": 351692,
"score": 42,
"source": "https://twitter.com/ksoo420/status/1256450801184018434",
"last_comment_bumped_at": null,
"rating": "e",
"image_width": 1500,
"image_height": 1059,
"tag_string": "1boy 1girl antenna_hair azur_lane bad_id bad_twitter_id bangs banned_artist black_choker black_panties black_ribbon blush breasts brown_eyes censored choker cleavage clothed_sex collarbone cowgirl_position cum cum_in_pussy dutch_angle eyebrows_visible_through_hair girl_on_top hair_between_eyes hair_ribbon heavy_breathing hetero iron_cross jewelry lactation large_breasts long_hair long_sleeves looking_at_viewer mole mole_on_breast mosaic_censoring multicolored_hair navel necklace nipple_tweak nipples open_clothes open_mouth open_shirt panties panties_aside penis prinz_eugen_(azur_lane) pussy red_hair ribbon sex shirt silver_hair slit_pupils solo_focus spread_legs squatting_cowgirl_position straddling streaked_hair suru_(ksoo420) sweat swept_bangs two_side_up underwear vaginal very_long_hair white_shirt",
"is_note_locked": false,
"fav_count": 87,
"last_noted_at": null,
"is_rating_locked": false,
"parent_id": 3892255,
"has_children": false,
"approver_id": null,
"tag_count_general": 65,
"tag_count_artist": 2,
"tag_count_character": 1,
"tag_count_copyright": 1,
"file_size": 394962,
"is_status_locked": false,
"pool_string": "",
"up_score": 42,
"down_score": 0,
"is_pending": false,
"is_flagged": false,
"is_deleted": false,
"tag_count": 71,
"updated_at": "2020-08-30T03:56:51.044-04:00",
"is_banned": true,
"pixiv_id": null,
"last_commented_at": null,
"has_active_children": false,
"bit_flags": 2,
"tag_count_meta": 2,
"has_large": true,
"has_visible_children": false,
"is_favorited": false,
"tag_string_general": "1boy 1girl antenna_hair bangs black_choker black_panties black_ribbon blush breasts brown_eyes censored choker cleavage clothed_sex collarbone cowgirl_position cum cum_in_pussy dutch_angle eyebrows_visible_through_hair girl_on_top hair_between_eyes hair_ribbon heavy_breathing hetero iron_cross jewelry lactation large_breasts long_hair long_sleeves looking_at_viewer mole mole_on_breast mosaic_censoring multicolored_hair navel necklace nipple_tweak nipples open_clothes open_mouth open_shirt panties panties_aside penis pussy red_hair ribbon sex shirt silver_hair slit_pupils solo_focus spread_legs squatting_cowgirl_position straddling streaked_hair sweat swept_bangs two_side_up underwear vaginal very_long_hair white_shirt",
"tag_string_character": "prinz_eugen_(azur_lane)",
"tag_string_copyright": "azur_lane",
"tag_string_artist": "banned_artist suru_(ksoo420)",
"tag_string_meta": "bad_id bad_twitter_id"
} |
Interesting. Is there a parameter to have it ignore things like banned posts, and to just keep going with the rest of the files? |
This error only occurred when the last post in a batch of 200 didn't have an |
So I was trying to get some stuff (well, more like allot, i suppose) from Danbooru, but as it was running, I stumbled into this error:
[danbooru][error] An unexpected error occurred: KeyError - 'id'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[danbooru][debug]
Traceback (most recent call last):
File "c:\python38\lib\site-packages\gallery_dl\job.py", line 67, in run
for msg in self.extractor:
File "c:\python38\lib\site-packages\gallery_dl\extractor\danbooru.py", line 52, in items
for post in self.posts():
File "c:\python38\lib\site-packages\gallery_dl\extractor\danbooru.py", line 96, in _pagination
params["page"] = "b{}".format(posts[-1]["id"])
KeyError: 'id'
This is the command I was trying to use: gallery-dl "https://danbooru.donmai.us/posts?tags=azur_lane"
Is it possible for this to be looked into, and fixed?
The text was updated successfully, but these errors were encountered: