Update entry command
This commit is contained in:
parent
a2b6847325
commit
16299feced
8 changed files with 62 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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[];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue