thanks apple
This commit is contained in:
parent
4412978375
commit
edc36fbe6c
1 changed files with 6 additions and 3 deletions
|
@ -120,6 +120,7 @@
|
||||||
this.getListenNowData()
|
this.getListenNowData()
|
||||||
await this.getArtistFeed()
|
await this.getArtistFeed()
|
||||||
await this.getFavorites()
|
await this.getFavorites()
|
||||||
|
await this.getRecentlyPlayed()
|
||||||
if (new Date().getMonth() == 11) {
|
if (new Date().getMonth() == 11) {
|
||||||
this.seenReplay = false
|
this.seenReplay = false
|
||||||
localStorage.setItem('seenReplay', false)
|
localStorage.setItem('seenReplay', false)
|
||||||
|
@ -199,8 +200,11 @@
|
||||||
})
|
})
|
||||||
} catch (error) { }
|
} catch (error) { }
|
||||||
},
|
},
|
||||||
getRecentlyPlayed() {
|
async getRecentlyPlayed() {
|
||||||
|
let hist = await app.mk.api.v3.music(`/v1/me/recent/played`, {
|
||||||
|
l: this.$root.mklang
|
||||||
|
})
|
||||||
|
this.recentlyPlayed = hist.data.data
|
||||||
},
|
},
|
||||||
async getListenNowData() {
|
async getListenNowData() {
|
||||||
let self = this
|
let self = this
|
||||||
|
@ -216,7 +220,6 @@
|
||||||
self.sectionsReady.push("madeForYou")
|
self.sectionsReady.push("madeForYou")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
self.recentlyPlayed = data.data.data[1].relationships.contents.data
|
|
||||||
self.friendsListeningTo = data.data.data.filter(section => {
|
self.friendsListeningTo = data.data.data.filter(section => {
|
||||||
if (section.meta.metrics.moduleType == "11") {
|
if (section.meta.metrics.moduleType == "11") {
|
||||||
return section
|
return section
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue