From 0699f458fd81af1cfbd7005a88b30daeb8ca9ce7 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sun, 6 Aug 2023 17:27:10 +0200 Subject: [PATCH] fix(Playlist): Only try extracting the subtitle for the first page --- src/parser/youtube/Playlist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/youtube/Playlist.ts b/src/parser/youtube/Playlist.ts index 111a6db508..5496fa4da1 100644 --- a/src/parser/youtube/Playlist.ts +++ b/src/parser/youtube/Playlist.ts @@ -36,7 +36,7 @@ class Playlist extends Feed { this.info = { ...this.page.metadata?.item().as(PlaylistMetadata), ...{ - subtitle: header.subtitle, + subtitle: header ? header.subtitle : null, author: secondary_info?.owner?.as(VideoOwner).author ?? header?.author, thumbnails: primary_info?.thumbnail_renderer?.as(PlaylistVideoThumbnail, PlaylistCustomThumbnail).thumbnail as Thumbnail[], total_items: this.#getStat(0, primary_info),