fix(VideoInfo): watch next feed not being parsed when logged out (#276)

This commit is contained in:
LuanRT
2023-01-05 19:09:16 -03:00
committed by GitHub
parent cd4d28c951
commit d69d701869
4 changed files with 38 additions and 11 deletions

View File

@@ -10,9 +10,9 @@ class TwoColumnWatchNextResults extends YTNode {
constructor(data: any) {
super();
this.results = Parser.parse(data.results?.results.contents, true);
this.secondary_results = Parser.parse(data.secondaryResults?.secondaryResults.results, true);
this.conversation_bar = Parser.parse(data?.conversationBar);
this.results = Parser.parseArray(data.results?.results.contents);
this.secondary_results = Parser.parseArray(data.secondaryResults?.secondaryResults.results);
this.conversation_bar = Parser.parseItem(data?.conversationBar);
}
}