invidious icon indicating copy to clipboard operation
invidious copied to clipboard

No "Previous Page" on the playlists list

Open TheFrenchGhosty opened this issue 6 years ago • 10 comments

There is no way to go back to the previous page of the playlists list. bug (this is the third and last page of the playlists of Linux Tech Tips)

TheFrenchGhosty avatar Jul 31 '19 21:07 TheFrenchGhosty

This is a limitation of how playlists are provided by YouTube. It's easier to see when looking at the respective API endpoint.

Essentially, YouTube provides a random token on each request that can be used to get the next page of playlists. AFAIK, YouTube doesn't provide the previously used token, so it's not possible to go back without using controls provided by the browser.

omarroth avatar Aug 01 '19 00:08 omarroth

That's because YouTube only supports infinite-scrolling without a offering "Next page" / "Previous page" link. Why not simply add a new URL parameter then, e.g. previous=OLD_TOKEN?

leonklingele avatar Aug 01 '19 07:08 leonklingele

That's because YouTube only supports infinite-scrolling without a offering "Next page" / "Previous page" link. Why not simply add a new URL parameter then, e.g. previous=OLD_TOKEN?

If it's not possible just having a "first page" might also be better than having to go back in the channel and clicking playlists again

TheFrenchGhosty avatar Aug 01 '19 09:08 TheFrenchGhosty

Why not simply add a new URL parameter then, e.g. previous=OLD_TOKEN?

Unfortunately this won't solve the problem, since the previous page won't be able to get the previous for itself, if that makes sense. It'd be necessary to have a previous=OLD_TOKEN1,OLD_TOKEN2,....

I think having a "first page" link is probably the best option here. It may make sense to refactor this to use the same code as /community since the implementation is extremely similar, although it wouldn't work without Javascript.

omarroth avatar Aug 01 '19 12:08 omarroth

you could cache those tokens as cookies

elypter avatar Aug 04 '19 02:08 elypter

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Jan 02 '21 12:01 github-actions[bot]

Still an issue.

TheFrenchGhosty avatar Jan 02 '21 14:01 TheFrenchGhosty

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Jun 26 '22 12:06 github-actions[bot]

Still an issue

TheFrenchGhosty avatar Jun 26 '22 19:06 TheFrenchGhosty

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

github-actions[bot] avatar Jun 27 '23 01:06 github-actions[bot]