hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

"Gelbooru favorites by user id" gallery downloader is broken

Open docchaoswizard opened this issue 1 year ago • 3 comments

Hydrus version

v558

Qt major version

Qt 6

Operating system

Other (aka none of the above, specify in the comments)

Install method

Extract

Install and OS comments

macOS Ventura Apple Silicon

Bug description and reproduction

I tried to use the gallery downloader with a gelbooru user ID (I tried two just to be sure there is nothing wrong with the account). The URL that appears in the search log is valid and shows the favorites correctly when opened in a browser. Even though the client says that the redirect was queued as a file import no files are imported and the query gets the status "DONE"

I am pretty sure that gelbooru probably changed some minute detail about the favorites-page because the regular gallery downloader ("gelbooru tag search") works.

Log output

File log:

Source: https://gelbooru.com/index.php?page=account&s=home
Status: Error
Note: Looks like HTML -- maybe the client needs to be taught how to parse this?

Search log:

Source: https://gelbooru.com/index.php?id=<USER-ID>&page=favorites&pid=0&s=view
Status: successful
Note: was redirected to a non-gallery url, which has been queued as a file import

docchaoswizard avatar Jan 12 '24 15:01 docchaoswizard

Same problem in version 562 on Windows.

sirahebi avatar Feb 23 '24 00:02 sirahebi

It seems to be an issue with the fringeBenefits downloader which sets the cookie in the header, removing it from the header and adding it to the session cookies fixes the problem.

sirahebi avatar Feb 26 '24 16:02 sirahebi

It seems to be an issue with the fringeBenefits downloader which sets the cookie in the header, removing it from the header and adding it to the session cookies fixes the problem.

Works like a charm! Thank you for that! For those wondering: You can remove the broken downloader under network -> data -> manage http headers, simply delete the header for gelbooru.com. To add the cookie go to network -> data -> review session cookies.

Because settings the cookie works fine i don't know if its worth opening an issue over at @CuddleBear92's repo, what do you guys think?

docchaoswizard avatar Feb 26 '24 17:02 docchaoswizard