We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c1e0f commit 2a87f42Copy full SHA for 2a87f42
src/parser/youtube/Search.ts
@@ -40,8 +40,8 @@ class Search extends Feed {
40
41
this.watch_card = {
42
header: universal_watch_card?.header.item() || null,
43
- call_to_action: universal_watch_card?.call_to_action.item().as(WatchCardHeroVideo) || null,
44
- sections: universal_watch_card?.sections.array().filterType(WatchCardSectionSequence) || []
+ call_to_action: universal_watch_card?.call_to_action?.item()?.as(WatchCardHeroVideo) || null,
+ sections: universal_watch_card?.sections?.array()?.filterType(WatchCardSectionSequence) || []
45
};
46
47
this.refinement_cards = {
0 commit comments