From 3b0498b68b5378e63283e792bd45571c0b919e0b Mon Sep 17 00:00:00 2001 From: LuanRT Date: Tue, 2 May 2023 03:21:02 -0300 Subject: [PATCH] fix(Video): typo causing node parsing to fail --- src/parser/classes/Video.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/classes/Video.ts b/src/parser/classes/Video.ts index 7d986f94..70edaefc 100644 --- a/src/parser/classes/Video.ts +++ b/src/parser/classes/Video.ts @@ -53,7 +53,7 @@ export default class Video extends YTNode { this.description_snippet = new Text(data.descriptionSnippet); } - if (Reflect.has(data, 'detaildMetadataSnippets')) { + if (Reflect.has(data, 'detailedMetadataSnippets')) { this.snippets = data.detailedMetadataSnippets.map((snippet: RawNode) => ({ text: new Text(snippet.snippetText), hover_text: new Text(snippet.snippetHoverText) @@ -127,4 +127,4 @@ export default class Video extends YTNode { get best_thumbnail(): Thumbnail | undefined { return this.thumbnails[0]; } -} \ No newline at end of file +}