mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Fixed toJSON issues
This commit is contained in:
@@ -41,7 +41,12 @@ export class Video {
|
|||||||
durationInSec: number;
|
durationInSec: number;
|
||||||
uploadedAt?: string;
|
uploadedAt?: string;
|
||||||
views: number;
|
views: number;
|
||||||
thumbnail?: Thumbnail;
|
thumbnail?: {
|
||||||
|
id: string | undefined;
|
||||||
|
width: number | undefined;
|
||||||
|
height: number | undefined;
|
||||||
|
url: string | undefined;
|
||||||
|
};
|
||||||
channel?: Channel;
|
channel?: Channel;
|
||||||
videos?: Video[];
|
videos?: Video[];
|
||||||
likes: number;
|
likes: number;
|
||||||
@@ -87,7 +92,7 @@ export class Video {
|
|||||||
durationInSec: this.durationInSec,
|
durationInSec: this.durationInSec,
|
||||||
durationRaw: this.durationRaw,
|
durationRaw: this.durationRaw,
|
||||||
uploadedAt: this.uploadedAt,
|
uploadedAt: this.uploadedAt,
|
||||||
thumbnail: this.thumbnail?.toJSON(),
|
thumbnail: this.thumbnail,
|
||||||
channel: {
|
channel: {
|
||||||
name: this.channel?.name as string,
|
name: this.channel?.name as string,
|
||||||
id: this.channel?.id as string,
|
id: this.channel?.id as string,
|
||||||
|
|||||||
Reference in New Issue
Block a user