mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 16:48:22 -04:00
[web] Do not show audiobooks in genre/composer listings for music
This commit is contained in:
parent
0772997e27
commit
c714592a31
@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-else-if="album.isItem" class="media" @click="open_album(album.item)">
|
<div v-else-if="album.isItem" class="media" @click="open_album(album.item)">
|
||||||
<div v-if="is_visible_artwork" class="media-left fd-has-action">
|
<div v-if="is_visible_artwork" class="media-left fd-has-action">
|
||||||
<p class="image is-64x64 fd-has-shadow fd-has-action">
|
<div class="image is-64x64 fd-has-shadow fd-has-action">
|
||||||
<figure>
|
<figure>
|
||||||
<img
|
<img
|
||||||
v-lazy="{
|
v-lazy="{
|
||||||
@ -20,7 +20,7 @@
|
|||||||
:artist="album.item.artist"
|
:artist="album.item.artist"
|
||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content fd-has-action is-clipped">
|
<div class="media-content fd-has-action is-clipped">
|
||||||
<div style="margin-top: 0.7rem">
|
<div style="margin-top: 0.7rem">
|
||||||
|
@ -27,7 +27,7 @@ import { byName, GroupByList } from '@/lib/GroupByList'
|
|||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load: function (to) {
|
load: function (to) {
|
||||||
return webapi.library_composers()
|
return webapi.library_composers('music')
|
||||||
},
|
},
|
||||||
|
|
||||||
set: function (vm, response) {
|
set: function (vm, response) {
|
||||||
|
@ -27,7 +27,7 @@ import { byName, GroupByList } from '@/lib/GroupByList'
|
|||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load: function (to) {
|
load: function (to) {
|
||||||
return webapi.library_genres()
|
return webapi.library_genres('music')
|
||||||
},
|
},
|
||||||
|
|
||||||
set: function (vm, response) {
|
set: function (vm, response) {
|
||||||
|
@ -292,8 +292,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
library_genres() {
|
library_genres(media_kind = undefined) {
|
||||||
return axios.get('./api/library/genres')
|
return axios.get('./api/library/genres', {
|
||||||
|
params: { media_kind: media_kind }
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
library_genre(genre) {
|
library_genre(genre) {
|
||||||
@ -303,8 +305,7 @@ export default {
|
|||||||
library_genre_albums(genre) {
|
library_genre_albums(genre) {
|
||||||
const genreParams = {
|
const genreParams = {
|
||||||
type: 'albums',
|
type: 'albums',
|
||||||
media_kind: 'music',
|
expression: `genre is "${genre}" and media_kind is music`
|
||||||
expression: 'genre is "' + genre + '"'
|
|
||||||
}
|
}
|
||||||
return axios.get('./api/search', {
|
return axios.get('./api/search', {
|
||||||
params: genreParams
|
params: genreParams
|
||||||
@ -314,8 +315,7 @@ export default {
|
|||||||
library_genre_tracks(genre) {
|
library_genre_tracks(genre) {
|
||||||
const genreParams = {
|
const genreParams = {
|
||||||
type: 'tracks',
|
type: 'tracks',
|
||||||
media_kind: 'music',
|
expression: `genre is "${genre}" and media_kind is music`
|
||||||
expression: 'genre is "' + genre + '"'
|
|
||||||
}
|
}
|
||||||
return axios.get('./api/search', {
|
return axios.get('./api/search', {
|
||||||
params: genreParams
|
params: genreParams
|
||||||
@ -333,8 +333,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
library_composers() {
|
library_composers(media_kind = undefined) {
|
||||||
return axios.get('./api/library/composers')
|
return axios.get('./api/library/composers', {
|
||||||
|
params: { media_kind: media_kind }
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
library_composer(composer) {
|
library_composer(composer) {
|
||||||
@ -344,8 +346,7 @@ export default {
|
|||||||
library_composer_albums(composer) {
|
library_composer_albums(composer) {
|
||||||
const params = {
|
const params = {
|
||||||
type: 'albums',
|
type: 'albums',
|
||||||
media_kind: 'music',
|
expression: `composer is "${composer}" and media_kind is music`
|
||||||
expression: 'composer is "' + composer + '"'
|
|
||||||
}
|
}
|
||||||
return axios.get('./api/search', {
|
return axios.get('./api/search', {
|
||||||
params: params
|
params: params
|
||||||
@ -355,8 +356,7 @@ export default {
|
|||||||
library_composer_tracks(composer) {
|
library_composer_tracks(composer) {
|
||||||
const params = {
|
const params = {
|
||||||
type: 'tracks',
|
type: 'tracks',
|
||||||
media_kind: 'music',
|
expression: `composer is "${composer}" and media_kind is music`
|
||||||
expression: 'composer is "' + composer + '"'
|
|
||||||
}
|
}
|
||||||
return axios.get('./api/search', {
|
return axios.get('./api/search', {
|
||||||
params: params
|
params: params
|
||||||
|
Loading…
x
Reference in New Issue
Block a user