diff --git a/src/components/Movie.vue b/src/components/Movie.vue index e323e3b..752950c 100644 --- a/src/components/Movie.vue +++ b/src/components/Movie.vue @@ -131,9 +131,7 @@ export default { favoriteChecked: false, requested: false, admin: localStorage.getItem('admin'), - showTorrents: false, - rating_int: 0, - rating_dec: 0 + showTorrents: false } }, computed: { @@ -145,10 +143,7 @@ export default { fetchMovie(id){ this.id = id; (this.mediaType == 'show') ? this.tmdbType = 'show' : this.tmdbType = 'movie' - // Fetch from seasoned to get matched status - // axios.get(`https://apollo.kevinmidboe.com/api/v1/plex/request/${id}?type=${'show'}&api_key=${storage.apiKey}&language=en-US`) axios.get(`https://api.kevinmidboe.com/api/v1/plex/request/${id}?type=${this.mediaType}`) - // axios.get(`http://localhost:31459/api/v1/plex/request/${id}?type=${this.mediaType}&api_key=${storage.apiKey}&language=en-US`) .then(function(resp){ let movie = resp.data; this.movie = movie; @@ -219,9 +214,6 @@ export default { // Send a request for a specific movie sendRequest(){ this.requested = '' - axios.post(`https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?type=${this.mediaType}`, - { headers: {authorization: storage.token} }, - ) axios({ method: 'post', //you can set what request you want to be url: `https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?type=${this.mediaType}`, @@ -229,6 +221,9 @@ export default { authorization: storage.token } }) + // axios.post(`https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?type=${this.mediaType}`, {}, { + // authorization: storage.token + // }) // axios.post(`https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?api_key=${storage.apiKey}&session_id=${storage.sessionId}`, { .then(function(resp){ if (resp.data.success)