From a4fe5cc6354381d03f58280b478199bfd670248f Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 2 Sep 2017 18:09:43 +0200 Subject: [PATCH] Made this a singular movie object that now only holds relevant information for movies. --- seasoned_api/src/media_classes/movie.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/seasoned_api/src/media_classes/movie.js b/seasoned_api/src/media_classes/movie.js index c5a197e..213f3db 100644 --- a/seasoned_api/src/media_classes/movie.js +++ b/seasoned_api/src/media_classes/movie.js @@ -1,17 +1,19 @@ class Movie { - constructor(title, year) { + constructor(title, year, type) { this.id = undefined; this.title = title; this.year = year; + this.type = type; this.release_date = undefined; - this.library = undefined; - this.type = undefined; + this.summary = undefined; + this.rating = undefined; this.poster = undefined; this.background = undefined; + this.genre = undefined; + + this.mediaInfo = undefined; + this.matchedInPlex = false; - this.childTitle = undefined; - this.season = undefined; - this.episode = undefined; } }