mirror of
https://github.com/KevinMidboe/seasonedRequest.git
synced 2025-10-29 01:40:14 +00:00
Removed unused urls and removed rating function.
This commit is contained in:
@@ -131,9 +131,7 @@ export default {
|
|||||||
favoriteChecked: false,
|
favoriteChecked: false,
|
||||||
requested: false,
|
requested: false,
|
||||||
admin: localStorage.getItem('admin'),
|
admin: localStorage.getItem('admin'),
|
||||||
showTorrents: false,
|
showTorrents: false
|
||||||
rating_int: 0,
|
|
||||||
rating_dec: 0
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -145,10 +143,7 @@ export default {
|
|||||||
fetchMovie(id){
|
fetchMovie(id){
|
||||||
this.id = id;
|
this.id = id;
|
||||||
(this.mediaType == 'show') ? this.tmdbType = 'show' : this.tmdbType = 'movie'
|
(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(`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){
|
.then(function(resp){
|
||||||
let movie = resp.data;
|
let movie = resp.data;
|
||||||
this.movie = movie;
|
this.movie = movie;
|
||||||
@@ -219,9 +214,6 @@ export default {
|
|||||||
// Send a request for a specific movie
|
// Send a request for a specific movie
|
||||||
sendRequest(){
|
sendRequest(){
|
||||||
this.requested = ''
|
this.requested = ''
|
||||||
axios.post(`https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?type=${this.mediaType}`,
|
|
||||||
{ headers: {authorization: storage.token} },
|
|
||||||
)
|
|
||||||
axios({
|
axios({
|
||||||
method: 'post', //you can set what request you want to be
|
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}`,
|
url: `https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?type=${this.mediaType}`,
|
||||||
@@ -229,6 +221,9 @@ export default {
|
|||||||
authorization: storage.token
|
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}`, {
|
// axios.post(`https://api.kevinmidboe.com/api/v1/plex/request/${this.id}?api_key=${storage.apiKey}&session_id=${storage.sessionId}`, {
|
||||||
.then(function(resp){
|
.then(function(resp){
|
||||||
if (resp.data.success)
|
if (resp.data.success)
|
||||||
|
|||||||
Reference in New Issue
Block a user