mirror of
https://github.com/KevinMidboe/seasonedRequest.git
synced 2025-10-29 18:00:13 +00:00
Added filtering of requested movies. Also change the order of movies in sidebar and added support for rating of movie. Change path destinations to be more clear.
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
</header>
|
||||
<div class="movie__main">
|
||||
<div class="movie__wrap movie__wrap--main" :class="{'movie__wrap--page': type=='page'}">
|
||||
<!-- <div class="movie__ratings">
|
||||
<p>here</p>
|
||||
</div> -->
|
||||
<!-- <div class="movie__actions" v-if="userLoggedIn && favoriteChecked"> -->
|
||||
<div class="movie__actions">
|
||||
|
||||
@@ -76,20 +79,18 @@
|
||||
</div>
|
||||
</div> -->
|
||||
<div v-if="movie.year" class="movie__details-block">
|
||||
<h2 class="movie__details-title">
|
||||
Release Date
|
||||
</h2>
|
||||
<div class="movie__details-text">
|
||||
{{ movie.year }}
|
||||
</div>
|
||||
<h2 class="movie__details-title">Release Date</h2>
|
||||
<div class="movie__details-text">{{ movie.year }}</div>
|
||||
</div>
|
||||
|
||||
<!-- <div v-if="movie.score" class="movie__details-block">
|
||||
<h2 class="movie__details-title">Rating</h2>
|
||||
<div class="movie__details-text">{{ rating }}</div>
|
||||
</div> -->
|
||||
|
||||
<div v-if="movie.type == 'show'" class="movie__details-block">
|
||||
<h2 class="movie__details-title">
|
||||
Seasons
|
||||
</h2>
|
||||
<div class="movie__details-text">
|
||||
10
|
||||
</div>
|
||||
<h2 class="movie__details-title">Seasons</h2>
|
||||
<div class="movie__details-text">{{ movie.seasons }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -130,7 +131,9 @@ export default {
|
||||
favoriteChecked: false,
|
||||
requested: false,
|
||||
admin: localStorage.getItem('admin'),
|
||||
showTorrents: false
|
||||
showTorrents: false,
|
||||
rating_int: 0,
|
||||
rating_dec: 0
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -161,7 +164,7 @@ export default {
|
||||
}
|
||||
// Push state
|
||||
if(storage.createMoviePopup){
|
||||
storage.moviePath = '/request/' + this.mediaType + '/' + id;
|
||||
storage.moviePath = this.mediaType + '/' + id;
|
||||
history.pushState({ popup: true }, null, storage.moviePath);
|
||||
storage.createMoviePopup = false;
|
||||
}
|
||||
@@ -219,6 +222,13 @@ export default {
|
||||
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}`,
|
||||
headers: {
|
||||
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