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