From 4484f78394bb96f43458d1a2615b7e4ba5574cf4 Mon Sep 17 00:00:00 2001 From: LuanRT Date: Mon, 5 Sep 2022 03:30:44 -0300 Subject: [PATCH] fix(VideoSecondaryInfo): `subscribe_button` can also be just a `Button` --- src/parser/classes/VideoSecondaryInfo.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser/classes/VideoSecondaryInfo.ts b/src/parser/classes/VideoSecondaryInfo.ts index b93e669f..665468d9 100644 --- a/src/parser/classes/VideoSecondaryInfo.ts +++ b/src/parser/classes/VideoSecondaryInfo.ts @@ -1,5 +1,6 @@ import Parser from '../index'; import Text from './misc/Text'; +import Button from './Button'; import SubscribeButton from './SubscribeButton'; import MetadataRowContainer from './MetadataRowContainer'; import { YTNode } from '../helpers'; @@ -20,7 +21,7 @@ class VideoSecondaryInfo extends YTNode { super(); this.owner = Parser.parse(data.owner); this.description = new Text(data.description); - this.subscribe_button = Parser.parseItem(data.subscribeButton, SubscribeButton); + this.subscribe_button = Parser.parseItem(data.subscribeButton, [ SubscribeButton, Button ]); this.metadata = Parser.parseItem(data.metadataRowContainer, MetadataRowContainer); this.show_more_text = data.showMoreText; this.show_less_text = data.showLessText;