Skip to content

Commit

Permalink
fix(Playlist): Only try extracting the subtitle for the first page (#465
Browse files Browse the repository at this point in the history
)
  • Loading branch information
absidue authored Aug 6, 2023
1 parent 3bc53a8 commit e370116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/youtube/Playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e370116

Please sign in to comment.