From e3701160928e9e959b88ca215c6b0a44c70ca6e6 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Mon, 7 Aug 2023 00:14:21 +0200 Subject: [PATCH] fix(Playlist): Only try extracting the subtitle for the first page (#465) --- 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 111a6db50..5496fa4da 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),