Kuroba-Experimental icon indicating copy to clipboard operation
Kuroba-Experimental copied to clipboard

Kohlchan doesn't load catalog

Open BugmanSpirit opened this issue 1 year ago • 7 comments

Catalog in kohlchan doesn't loads the full catalog when opened. Only the top 6 posts loads at first. When scrolled to the bottom, the whole catalog gets refreshed and a few more posts gets loaded which it also reorganizes the existing order of the already loaded posts. To load the full catalog you have to scroll to the bottom for 30 times.

There is an exact url for kohlchan which gets the catalog directly without navigating from the home. https://kohlchan.net/int/catalog.html

The default behavior of the site is to load the boards and threads without changing the url from https://kohlchan.net/.

BugmanSpirit avatar Jun 02 '23 21:06 BugmanSpirit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 07 '23 04:08 stale[bot]

Do you have catalog sorting set to something other than BUMP? That's not supported. With BUMP it works for me on /int/ and other boards.

K1rakishou avatar Aug 09 '23 13:08 K1rakishou

I did have the sorting order set to latest first. But even after changing it to bump it only loads the first few posts. When reached to the end it loads some more posts.

What's changed is that after setting the sorting order to bump it doesn't have to refresh the catalog after loading more posts. https://github.com/K1rakishou/Kuroba-Experimental/assets/85781937/acb092ba-3ad5-4a7c-9c0c-17ace0ba13a7

BugmanSpirit avatar Aug 12 '23 13:08 BugmanSpirit

Wait that's how it's supposed to work because Kohlchan's catalog is paginated.

K1rakishou avatar Aug 12 '23 13:08 K1rakishou

When I do a get request on https://kohlchan.net/int/catalog.html in python requests I am able to get the html page containing all 300 posts. Can we not just parse this output to produce the catalog in the app?

BugmanSpirit avatar Aug 12 '23 13:08 BugmanSpirit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 17 '23 03:09 stale[bot]

Can you add a feature in which it is configurable to set the number of pages to preload upon reaching a threshold in the scrollable space. For example load next 5 pages when I've scrolled to 75% of current content.

BugmanSpirit avatar May 28 '24 15:05 BugmanSpirit