mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-17 14:06:14 +00:00
Fix trending page by leaving livestream and gaming trending pages (#5555)
The livestream trending page is now the default.
Adds `content_container = special_category_container["gridRenderer"]?` in the `CategoryRendererParser`
needed for the gaming trending page. The JSON structure of the gaming
trending page looked like this:
```json
"contents": {
"twoColumnBrowseResultsRenderer": {
"tabs": [
{
"tabRenderer": {
"selected": true,
"content": {
"sectionListRenderer": {
"contents": [
{
"itemSectionRenderer": {
"contents": [
{
"shelfRenderer": {
"title": {
"runs": [
{
"text": "Trending videos"
}
]
},
"content": {
"gridRenderer": { // <- This was added to the CategoryRendererParser
"items": [
{
"gridVideoRenderer": {
"videoId": "sTWztaLjD20",
// More video data
// ...
}
}
]
}
}
}
}
]
}
}
]
}
}
}
}
]
}
}
```
Thanks to
ae2755bf71/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/kiosk/YoutubeTrendingGamingVideosExtractor.java (L11-L13)
for the `browse_id` and `params` needed for the gaming trending page.
This commit is contained in:
@@ -442,6 +442,7 @@ private module Parsers
|
||||
if content_container = special_category_container["horizontalListRenderer"]?
|
||||
elsif content_container = special_category_container["expandedShelfContentsRenderer"]?
|
||||
elsif content_container = special_category_container["verticalListRenderer"]?
|
||||
elsif content_container = special_category_container["gridRenderer"]?
|
||||
else
|
||||
# Anything else, such as `horizontalMovieListRenderer` is currently unsupported.
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user