Local API: Extract releases on auto-generated artist topic channels #5241
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.
Local API: Extract releases on auto-generated artist topic channels
Pull Request Type
Related issue
#5201 (was actually about Invidious returning a HTTP 500 error when you request those channels but it also covered the albums and singles not showing up)
Description
I originally addressed this in #4129 but then YouTube redesigned the auto-generated artist topic channels before we did a release, so it never actually worked in a release version of FreeTube (which is why I made sure my pull request wasn't listed in the release notes), so I'm counting this as a feature implementation.
This pull request adds support for the new design and layout by displaying albums and singles in the releases tab on auto-generated artist topic channels. That seemed that most fitting tab to display them in, as that's where YouTube displays them when you visit the actual artist's channel (the user one and not the auto-generated one from YouTube Music).
As the small list of albums and singles displayed on the home tab, as the same as the first few in the view all popup, I decided to only extract from the popup but to fallback to the small list on the home tab in case extracting from the popup fails.
Screenshots
Testing
https://www.youtube.com/channel/UCRw0x9_EfawqmgDI2IgQLLg
https://www.youtube.com/channel/UCh-4c1ZoBPNP1C8c-7iVvUQ
https://www.youtube.com/channel/UCBR8-60-B28hp2BmDPdntcQ
Desktop