fix(Playlist): Only try extracting the subtitle for the first page (#465)

This commit is contained in:
absidue
2023-08-07 00:14:21 +02:00
committed by GitHub
parent 3bc53a8c12
commit e370116092

View File

@@ -36,7 +36,7 @@ class Playlist extends Feed<IBrowseResponse> {
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),