Update entry command

This commit is contained in:
mProjectsCode 2022-05-19 22:59:01 +02:00
parent a2b6847325
commit 16299feced
8 changed files with 62 additions and 3 deletions

View file

@ -5,6 +5,7 @@ import {mediaDbTag} from '../utils/Utils';
export class GameModel extends MediaTypeModel {
type: string;
subType: string;
title: string;
englishTitle: string;
year: string;
@ -27,6 +28,8 @@ export class GameModel extends MediaTypeModel {
super();
Object.assign(this, obj);
this.type = 'game';
}
toMetaData(): string {

View file

@ -1,5 +1,6 @@
export abstract class MediaTypeModel {
type: string;
subType: string;
title: string;
englishTitle: string;
year: string;
@ -12,4 +13,5 @@ export abstract class MediaTypeModel {
abstract getFileName(): string;
abstract getTags(): string[];
}

View file

@ -5,6 +5,7 @@ import {mediaDbTag} from '../utils/Utils';
export class MovieModel extends MediaTypeModel {
type: string;
subType: string;
title: string;
englishTitle: string;
year: string;
@ -30,6 +31,8 @@ export class MovieModel extends MediaTypeModel {
super();
Object.assign(this, obj);
this.type = 'movie';
}
toMetaData(): string {

View file

@ -5,6 +5,7 @@ import {mediaDbTag} from '../utils/Utils';
export class MusicReleaseModel extends MediaTypeModel {
type: string;
subType: string;
title: string;
englishTitle: string;
year: string;
@ -14,7 +15,6 @@ export class MusicReleaseModel extends MediaTypeModel {
genres: string[];
artists: string[];
subType: string;
rating: number;
personalRating: number;
@ -23,6 +23,8 @@ export class MusicReleaseModel extends MediaTypeModel {
super();
Object.assign(this, obj);
this.type = 'musicRelease';
}
toMetaData(): string {

View file

@ -5,6 +5,7 @@ import {mediaDbTag} from '../utils/Utils';
export class SeriesModel extends MediaTypeModel {
type: string;
subType: string;
title: string;
englishTitle: string;
year: string;
@ -33,6 +34,8 @@ export class SeriesModel extends MediaTypeModel {
super();
Object.assign(this, obj);
this.type = 'series';
}
toMetaData(): string {

View file

@ -5,6 +5,7 @@ import {mediaDbTag} from '../utils/Utils';
export class WikiModel extends MediaTypeModel {
type: string;
subType: string;
title: string;
englishTitle: string;
year: string;
@ -21,6 +22,8 @@ export class WikiModel extends MediaTypeModel {
super();
Object.assign(this, obj);
this.type = 'wiki';
}
toMetaData(): string {