From d36389c8655c300fc38f1138e962fa3db4d4a82d Mon Sep 17 00:00:00 2001 From: LuanRT Date: Thu, 5 Jan 2023 21:44:56 -0300 Subject: [PATCH] refactor(VideoInfo): simplify watch next feed extraction --- src/parser/youtube/VideoInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/youtube/VideoInfo.ts b/src/parser/youtube/VideoInfo.ts index c4e8b60d4..ed917aece 100644 --- a/src/parser/youtube/VideoInfo.ts +++ b/src/parser/youtube/VideoInfo.ts @@ -162,7 +162,7 @@ class VideoInfo { this.merchandise = results.firstOfType(MerchandiseShelf); this.related_chip_cloud = secondary_results.firstOfType(RelatedChipCloud)?.content.item().as(ChipCloud); - this.watch_next_feed = actions.session.logged_in ? secondary_results.firstOfType(ItemSection)?.contents : secondary_results; + this.watch_next_feed = secondary_results.firstOfType(ItemSection)?.contents || secondary_results; if (this.watch_next_feed && Array.isArray(this.watch_next_feed)) this.#watch_next_continuation = this.watch_next_feed.pop()?.as(ContinuationItem);