Added liveAt property in YouTube Video

This commit is contained in:
killer069
2022-02-11 18:35:17 +05:30
parent e939585c17
commit e60e71125e
3 changed files with 8 additions and 2 deletions

View File

@@ -119,6 +119,10 @@ export class YouTubeVideo {
* YouTube Video Uploaded Date
*/
uploadedAt?: string;
/**
* YouTube Live Date
*/
liveAt?: string;
/**
* If the video is upcoming or a premiere that isn't currently live, this will contain the premiere date, for watch page playlists this will be true, it defaults to undefined
*/
@@ -174,6 +178,7 @@ export class YouTubeVideo {
this.durationRaw = data.duration_raw || '0:00';
this.durationInSec = (data.duration < 0 ? 0 : data.duration) || 0;
this.uploadedAt = data.uploadedAt || undefined;
this.liveAt = data.liveAt || undefined;
this.upcoming = data.upcoming;
this.views = parseInt(data.views) || 0;
const thumbnails = [];