Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.59k stars 220 forks source link

Default Gelbooru Profile Isn't Working (URL Issue?) #2635

Closed Sakurazaki1023 closed 2 years ago

Sakurazaki1023 commented 2 years ago

The default Gelbooru profile stopped working a while back. Whenever I search for anything, I get a "No Result" response in Grabber. The tag bar on the left still displays correctly, but no matter which tags are selected I still get the "No Result" response. Digging into the issue, Grabber is linking to a url that doesn't exist. For example, the link to the tag "highres" generated by Grabber is:

https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres

While the url for that tag when searching on the Gelbooru site is:

https://gelbooru.com/index.php?page=post&s=list&tags=highres

I went digging through Grabber to see if there was a way to alter the URL format used by the default profile, but couldn't find anything that looked correct. Danbooru and other sites seem to be working, so it might be specific to the Gelbooru formatted sites. Just to be safe, I double-checked that I'm using the most recent version of Grabber and verified that my login credentials were working.

Thank you for your help.

Bionus commented 2 years ago

Digging into the issue, Grabber is linking to a url that doesn't exist. For example, the link to the tag "highres" generated by Grabber is:

https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres

Why do you say this doesn't exist? I just clicked the link and it returns XML describing the images with the "highres" tag. 🤔 If it gives "no result" that's indeed a problem but this link is totally valid. Do you have any log?

Sakurazaki1023 commented 2 years ago

I guess it's more accurate to say that Grabber isn't reading the valid XML and displaying the results. The log is as follows:

[08:34:18.734][Info] Loading results... [08:34:18.735][Info] [gelbooru.com][Html] Loading page https://gelbooru.com/index.php?page=post&s=list&tags=highres&pid=0 [08:34:18.735][Info] [gelbooru.com][Xml] Loading page https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres [08:34:19.107][Info] [gelbooru.com][Html] Receiving page https://gelbooru.com/index.php?page=post&s=list&tags=highres&pid=0 [08:34:19.108][Info] [gelbooru.com][Html] Parsed page https://gelbooru.com/index.php?page=post&s=list&tags=highres&pid=0: 0 images (0), 57 tags (57), -1 total (3017154), 71837 pages (71837) [08:34:19.580][Info] [gelbooru.com][Xml] Receiving page https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres [08:34:19.590][Info] [gelbooru.com][Xml] Parsed page https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres: 0 images (0), 0 tags (0), 3165447 total (3165447), 31655 pages (31655)

Bionus commented 2 years ago

It seems you might still have the old model file from before the issue #2559 fix (commit 8e5071156cf2405578bd1cf8917b16c4f8a5337f). Are you on Linux? If so, make sure to delete all "model.js" before updating, since the files are now read from the AppImage directly.

Otherwise, the latest model.js file can be found here: https://github.com/Bionus/imgbrd-grabber/releases/tag/sources-master Download the "Gelbooru 0.2" one, extract "model.js" and overwrite the one in your config directory.

Sakurazaki1023 commented 2 years ago

I'm on Windows 10 x64.

I replaced the model.js file and got the same result. Here is the log:

[13:12:05.284][Info] Temp directory purged of 0/0 files (0 failed) [13:12:05.484][Info] Software version: 7.8.0. [13:12:05.485][Info] Software CPU architecture: x64. [13:12:05.485][Info] Computer CPU architecture: x86_64. [13:12:05.485][Info] Qt CPU architecture: x86_64. [13:12:05.486][Info] Computer platform: Windows 10 Version 2009. [13:12:05.486][Info] Path: C:/Program Files/Grabber [13:12:05.486][Info] Loading preferences from C:/Users/Sakur/AppData/Local/Bionus/Grabber/settings.ini [13:12:05.487][Info] Temporary path: C:/Users/Sakur/AppData/Local/Temp\Grabber [13:12:05.487][Info] Sources found: 25 [13:12:05.488][Info] SSL libraries: OpenSSL 1.1.1n 15 Mar 2022 [13:12:05.493][Info] Setting language to 'English' (C:\Program Files\Grabber\languages\English.qm)... [13:12:05.495][Info] 25 sources found: anime-pictures.net (Anime pictures), api.twitter.com (Twitter), behoimi.org (Danbooru), danbooru.donmai.us (Danbooru (2.0)), derpibooru.org (Philomena), e-hentai.org (E-Hentai), e621.net (E621), exhentai.org (E-Hentai), gelbooru.com (Gelbooru (0.2)), hijiribe.donmai.us (Danbooru (2.0)), konachan.com (Moebooru), nhentai.net (NHentai), nijie.info (Nijie), rule34.paheal.net (Shimmie), rule34.xxx (Gelbooru (0.2)), safebooru.org (Gelbooru (0.2)), sonohara.donmai.us (Danbooru (2.0)), tentaclerape.net (Shimmie), thedoujin.com (Anime pictures), wallhaven.cc (WallHaven), www.deviantart.com (DeviantArt), www.pixiv.net (Pixiv), www.reddit.com (Reddit), www.zerochan.net (Zerochan), yande.re (Moebooru) [13:12:05.600][Info] Updating checkboxes. [13:12:05.610][Info] [gelbooru.com] Logging in... [13:12:05.610][Info] [gelbooru.com] Login finished: success. [13:12:05.614][Info] Updating checkboxes. [13:12:05.631][Info] Monitoring starting [13:12:05.656][Info] Monitoring tick [13:12:05.656][Info] Next monitoring will be in 65820 seconds [13:12:09.435][Info] Loading results... [13:12:09.435][Info] [gelbooru.com][Html] Loading page https://gelbooru.com/index.php?page=post&s=list&tags=highres&pid=0 [13:12:09.436][Info] [gelbooru.com][Xml] Loading page https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres [13:12:10.387][Info] [gelbooru.com][Html] Receiving page https://gelbooru.com/index.php?page=post&s=list&tags=highres&pid=0 [13:12:10.390][Info] [gelbooru.com][Html] Parsed page https://gelbooru.com/index.php?page=post&s=list&tags=highres&pid=0: 0 images (0), 61 tags (61), -1 total (3017742), 71851 pages (71851) [13:12:10.695][Info] [gelbooru.com][Xml] Receiving page https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres [13:12:10.704][Info] [gelbooru.com][Xml] Parsed page https://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=100&pid=0&tags=highres: 0 images (0), 0 tags (0), 3166082 total (3166082), 31661 pages (31661)

Sakurazaki1023 commented 2 years ago

I've extracted the monitors.json and settings.ini files for backup, so I'm going to try uninstalling everything and reinstalling via the most recent installer.

EDIT: Reinstalling fixed the issue. I tested it with a fresh settings.ini file, and then copied my old monitors.json and settings.ini files back into local app data. Now everything is working and all of my old settings are retained. No idea what caused the original issue, but thank you so much for your help!

Bionus commented 2 years ago

Strange. There might have been something weird going on with the model file or the source order then 🤔 Glad you managed to fix it 😅