FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.63k stars 861 forks source link

[Feature Request]: Fallback to channel playlists if something goes wrong on the channel page #6119

Open ChunkyProgrammer opened 1 week ago

ChunkyProgrammer commented 1 week ago

Guidelines

Problem Description

We fallback to RSS feeds if something goes wrong on the subscriptions page, it'd be nice if we were to do the same on the channel page (since we can't get continuations for RSS feeds, we should use the playlist api instead)

Proposed Solution

Invidious API/ no backend fallback + Local API/ no backend fallback

Invidious API/ with backend fallback + Local API/ with backend fallback

Additional

Alternatives Considered

Don't bother since channel page breakages don't happen often.

Issue Labels

improvement to existing feature

Additional Information

No response

absidue commented 1 week ago

I would suggest falling back to the API playlists first, we already do that for artist topic channels with the local API, additionally they contain more information (video durations, live status, etc) and support continuations compared to the playlists RSS which only contains 15 items. The reason that the API playlists aren't used on the subscriptions page is that most of the time when RSS is used on the subscriptions page it is because of ratelimits with the API and as channels and playlists use the same endpoint you would just get ratelimited the same as with channels.

My revised strategy would be:

  1. Channel API
  2. Playlists API
  3. if backend fallback enabled -> switch to other backend
  4. if all else fails try playlists RSS