This commit is contained in:
vapormusic 2022-04-07 21:27:51 +07:00
parent f5539dc1dc
commit f86c2a000e

View file

@ -130,7 +130,10 @@
methods: { methods: {
async seeAllRecentlyPlayed() { async seeAllRecentlyPlayed() {
let hist = await app.mk.api.v3.music(`/v1/me/recent/played`, { let hist = await app.mk.api.v3.music(`/v1/me/recent/played`, {
l: this.$root.mklang l: this.$root.mklang,
include: 'tracks',
'include[albums]': 'catalog,tracks,artists',
'include[songs]': 'catalog,artists',
}) })
app.showCollection(hist.data, app.getLz('home.recentlyPlayed')) app.showCollection(hist.data, app.getLz('home.recentlyPlayed'))
}, },
@ -209,7 +212,10 @@
}, },
async getRecentlyPlayed() { async getRecentlyPlayed() {
let hist = await app.mk.api.v3.music(`/v1/me/recent/played`, { let hist = await app.mk.api.v3.music(`/v1/me/recent/played`, {
l: this.$root.mklang l: this.$root.mklang,
include: 'tracks',
'include[albums]': 'catalog,tracks,artists',
'include[songs]': 'catalog,artists',
}) })
this.recentlyPlayed = hist.data.data this.recentlyPlayed = hist.data.data
}, },