Hydrus-Presets-and-Scripts icon indicating copy to clipboard operation
Hydrus-Presets-and-Scripts copied to clipboard

Update fanbox.cc downloader to use paginated API

Open roachcord3 opened this issue 11 months ago • 1 comments

Uses the post.paginateCreator resource instead of post.listCreator to fix getting all posts.

The nextUrl attribute seems to no longer be returned in the post.listCreator resource's responses, so the next gallery URL can no longer be generated from the old parser; it's now only capable of getting whatever the upper bound on the limit query parameter is (maybe we could do more than the default 100, but that's not the same as getting ALL posts.)

Because I am not sure whether the pinned post is guaranteed to be included in the paginated list, I have included a GUG for getting JUST the pinned post, so now "fanbox.cc artist lookup" is a nested GUG that combines the paginated GUG and the pinned post list GUG. If anyone out there can figure out whether this is unnecessary, please let me know so we can simplify this downloader.

roachcord3 avatar Apr 27 '25 20:04 roachcord3

Hydrus 625 fixed the issue this downloader had where it would redownload posts due to it using a NGUG. Still not sure if fetching the pinned post in a separate request is redundant, but I have tested this with all my fanbox subs and can confirm it works great and gets all posts like it should, unlike the existing downloader.

roachcord3 avatar Jun 15 '25 04:06 roachcord3