mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-30 13:57:46 +00:00
fix: YouTube trending name extraction
This commit is contained in:
@@ -85,6 +85,8 @@ public class YoutubeTrendingExtractor extends KioskExtractor<StreamInfoItem> {
|
|||||||
name = getTextAtKey(header.getObject("feedTabbedHeaderRenderer"), "title");
|
name = getTextAtKey(header.getObject("feedTabbedHeaderRenderer"), "title");
|
||||||
} else if (header.has("c4TabbedHeaderRenderer")) {
|
} else if (header.has("c4TabbedHeaderRenderer")) {
|
||||||
name = getTextAtKey(header.getObject("c4TabbedHeaderRenderer"), "title");
|
name = getTextAtKey(header.getObject("c4TabbedHeaderRenderer"), "title");
|
||||||
|
} else if (header.has("pageHeaderRenderer")) {
|
||||||
|
name = getTextAtKey(header.getObject("pageHeaderRenderer"), "pageTitle");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNullOrEmpty(name)) {
|
if (isNullOrEmpty(name)) {
|
||||||
|
Reference in New Issue
Block a user