diff --git a/client/app/components/MovieObject.jsx b/client/app/components/MovieObject.jsx
index e1be5d9..09da015 100644
--- a/client/app/components/MovieObject.jsx
+++ b/client/app/components/MovieObject.jsx
@@ -7,6 +7,7 @@ class MovieObject {
this.id = object.id;
this.title = object.title;
this.year = object.year;
+ this.type = object.type;
// Check if object.poster != undefined
this.poster = object.poster;
this.matchedInPlex = object.matchedInPlex;
@@ -17,8 +18,9 @@ class MovieObject {
console.log('Exists', movie);
}
- requestMovie(id) {
- fetch('https://apollo.kevinmidboe.com/api/v1/plex/request/' + id, {
+ requestMovie() {
+ // fetch('https://apollo.kevinmidboe.com/api/v1/plex/request/' + id, {
+ fetch('http://localhost:31459/api/v1/plex/request/' + this.id + '?type='+this.type, {
method: 'POST'
});
}
@@ -106,7 +108,7 @@ class MovieObject {
foundInPlex = ;
} else {
- foundInPlex =