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,
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user