it creates files now

This commit is contained in:
mProjectsCode 2022-05-04 21:04:38 +02:00
parent c67a0bf590
commit 4405eb4a34
7 changed files with 61 additions and 19 deletions

View file

@ -4,6 +4,7 @@ export class MovieModel extends MediaTypeModel {
type: string;
title: string;
dataSource: string;
id: string;
genres: string[];
producer: string;
@ -19,14 +20,16 @@ export class MovieModel extends MediaTypeModel {
personalRating: number;
constructor() {
constructor(obj: any = {}) {
super();
Object.assign(this, obj);
this.type = 'movie';
}
toMetaData(): string {
return '';
return JSON.stringify(this);
}
}