diff --git a/client/app/components/MovieObject.jsx b/client/app/components/MovieObject.jsx index f91d321..eaf4667 100644 --- a/client/app/components/MovieObject.jsx +++ b/client/app/components/MovieObject.jsx @@ -6,16 +6,37 @@ class MovieObject { this.title = object.title; this.year = object.year; // Check if object.poster != undefined - this.poster = 'https://image.tmdb.org/t/p/w150' + object.poster; + this.poster = object.poster; + this.matchedInPlex = object.matchedInPlex + } + + requestExisting(id) { + console.log('Exists', id) + } + + requestMovie(id) { + console.log(id); } getElement() { - var returnString = [ -
{this.title} ({this.year})
, -{this.title} ({this.year})
) + + var posterPath, buttonState; + if (this.poster != undefined) { + posterPath = 'https://image.tmdb.org/t/p/w150' + this.poster; + } + returnList.push(