iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.33k stars 1.82k forks source link

No "Previous Page" on the playlists list #660

Open TheFrenchGhosty opened 5 years ago

TheFrenchGhosty commented 5 years ago

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)

omarroth commented 5 years ago

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.

leonklingele commented 5 years ago

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?

TheFrenchGhosty commented 5 years ago

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

omarroth commented 5 years ago

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.

elypter commented 5 years ago

you could cache those tokens as cookies

github-actions[bot] commented 3 years ago

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.

TheFrenchGhosty commented 3 years ago

Still an issue.

github-actions[bot] commented 2 years ago

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.

TheFrenchGhosty commented 2 years ago

Still an issue

github-actions[bot] commented 1 year ago

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.