gglukmann / pocketizer

Unofficial Pocket new tab extension for Chrome, Firefox, and Edge
https://gglukmann.github.io/pocketizer/
MIT License
51 stars 5 forks source link

Retrieved lists limited to 30 items #17

Open Banus opened 1 month ago

Banus commented 1 month ago

Pocket recently changed the behavior of the retrieve API and now it returns only the 30 most recent items from either list (Saved or Archived). Thus, a newly installed Pocketizer shows only the 30 most recent items.

The documentation suggest a way to retrieve the full list(s) by sorting from oldest to newest and pass the last item's time to the "since" parameter to retrieve a new chunk, iteratively:

Retrieving Full List: Whenever possible, you should use the since parameter, or count and and offset parameters when retrieving a user's list. After retrieving the list, you should store the current time (which is provided along with the list response) and pass that in the next request for the list. This way the server only needs to return a small set (changes since that time) instead of the user's entire list every time.

gglukmann commented 1 month ago

Thank you, I'll fix it

gglukmann commented 1 month ago

It looks like Pocket has reverted or fixed this themselves. It now loads everything again. A better solution would be to load them in chuck. I'll create an update for that soon.