Use auto-generated playlists for the videos tab on artist topic channels #5661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use auto-generated playlists for the videos tab on artist topic channels
Pull Request Type
Related issue
#5282
as well as various users in the Matrix chat
Description
Various users have asked about being able to see the videos on artist topic channels and each time I've had to point out that YouTube doesn't show them on the channels, so we can't either.
However I have since discovered that despite YouTube not displaying a videos tab on those artist topic channels, the auto-generated uploads playlists still exist, so we are able to show the videos tab and populate it with content from those playlists. YouTube doesn't have auto-generated playlists sorted by oldest, so we can only offer sorting by newest and popularity on those channels.
We already supported showing content from those channels on the subscriptions page if you used RSS as we already use those playlists for RSS, but without RSS the subscriptions page acted like the channels didn't have any uploads as the videos tab is missing, this pull request also adds the playlist logic to the subscriptions page.
Please note that Invidious doesn't support those artist topic channels and returns a HTTP 500 error when you visit one of them, so this pull request is just for the local API.
Screenshots
Testing
Adele: https://www.youtube.com/channel/UCRw0x9_EfawqmgDI2IgQLLg
Empty Adele clone: https://www.youtube.com/channel/UCARQGyrd8OaaxkLsPZrOB9g
Test those two channels with the local API on both the channel and subscriptions pages (Invidious returns HTTP 500 for artist topic channels)
Please also test a normal channel like https://www.youtube.com/@YouTube just to make sure I didn't break anything.
Desktop