[web-src] Only include media_kind music in music browse page

This commit is contained in:
chme 2019-02-09 08:48:42 +01:00
parent 72792d1e31
commit 46995197ff
3 changed files with 4 additions and 4 deletions

View File

@ -67,8 +67,8 @@ import webapi from '@/webapi'
const browseData = {
load: function (to) {
return Promise.all([
webapi.search({ type: 'album', expression: 'time_added after 8 weeks ago having track_count > 3 order by time_added desc', limit: 3 }),
webapi.search({ type: 'track', expression: 'time_played after 8 weeks ago order by time_played desc', limit: 3 })
webapi.search({ type: 'album', expression: 'time_added after 8 weeks ago and media_kind is music having track_count > 3 order by time_added desc', limit: 3 }),
webapi.search({ type: 'track', expression: 'time_played after 8 weeks ago and media_kind is music order by time_played desc', limit: 3 })
])
},

View File

@ -33,7 +33,7 @@ const browseData = {
load: function (to) {
return webapi.search({
type: 'album',
expression: 'time_added after 8 weeks ago having track_count > 3 order by time_added desc',
expression: 'time_added after 8 weeks ago and media_kind is music having track_count > 3 order by time_added desc',
limit: 50
})
},

View File

@ -33,7 +33,7 @@ const browseData = {
load: function (to) {
return webapi.search({
type: 'track',
expression: 'time_played after 8 weeks ago order by time_played desc',
expression: 'time_played after 8 weeks ago and media_kind is music order by time_played desc',
limit: 50
})
},