diff --git a/src/parser/classes/PlaylistVideo.ts b/src/parser/classes/PlaylistVideo.ts index ab67fee60..83573d79f 100644 --- a/src/parser/classes/PlaylistVideo.ts +++ b/src/parser/classes/PlaylistVideo.ts @@ -3,6 +3,7 @@ import Parser from '../index.js'; import Thumbnail from './misc/Thumbnail.js'; import PlaylistAuthor from './misc/PlaylistAuthor.js'; import NavigationEndpoint from './NavigationEndpoint.js'; +import ThumbnailOverlayTimeStatus from './ThumbnailOverlayTimeStatus.js'; import type Menu from './menus/Menu.js'; import { YTNode } from '../helpers.js'; @@ -20,6 +21,7 @@ class PlaylistVideo extends YTNode { endpoint: NavigationEndpoint; is_playable: boolean; menu: Menu | null; + upcoming; duration: { text: string; @@ -33,16 +35,30 @@ class PlaylistVideo extends YTNode { this.title = new Text(data.title); this.author = new PlaylistAuthor(data.shortBylineText); this.thumbnails = Thumbnail.fromResponse(data.thumbnail); - this.thumbnail_overlays = Parser.parse(data.thumbnailOverlays); + this.thumbnail_overlays = Parser.parseArray(data.thumbnailOverlays); this.set_video_id = data?.setVideoId; this.endpoint = new NavigationEndpoint(data.navigationEndpoint); this.is_playable = data.isPlayable; this.menu = Parser.parseItem