BlafKing / sd-civitai-browser-plus

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.
GNU Affero General Public License v3.0
289 stars 44 forks source link

Can't jump to other pages #238

Closed TypicaIDay closed 4 months ago

TypicaIDay commented 4 months ago

Describe the bug.

I cannot jump to other pages, say for example I wanted to jump to page 26, whenever I put 26 in the page number, it doesn't put me there.

Steps to reproduce the problem.

  1. Go to CivitAI Browser section
  2. Press the search bar to show results
  3. Put in number 26 in the page number

Expected behavior

I expected it to just jump to said page.

System info

Console logs

None

Additional information

No response

BlafKing commented 4 months ago

This is no longer possible since the CivitAI API update. The paging system returned by the API now works with a "cursor" based paging system. Before the update it was possible to simply define which page you would like to get returned and access it, but now, the API no longer accepts a page number, it simply only returns a URL for the next page.

So in other words, it's only possible to jump to pages that you've already visited, until you do a new search, then the page index resets.

It's not possible to know what the URL for an arbitrary page number would be, unless already visited through clicking "Next page".

This change was unfortunately required because of the number of models now hosted on CivitAI. Indexing all the pages for each request took too much processing power, which is why a cursor based system is now used.

I'll close this bug report as it's not a bug, but intended behaviour with the new CivitAI API.

(I'll see if I can make it more obvious that this is intended behaviour, as I can understand that it may look like this is a bug)