add 3rd party radio station support #689
also add disabled property for next button
This commit is contained in:
parent
de692c9dc8
commit
eedf9304da
6 changed files with 78 additions and 7 deletions
|
@ -658,6 +658,7 @@ const app = new Vue({
|
|||
}
|
||||
|
||||
this.mk._bag.features['seamless-audio-transitions'] = this.cfg.audio.seamless_audio
|
||||
this.mk._bag.features["broadcast-radio"] = true
|
||||
this.mk._services.apiManager.store.storekit._restrictedEnabled = false
|
||||
// API Fallback
|
||||
if (!this.chrome.userinfo) {
|
||||
|
@ -1801,6 +1802,12 @@ const app = new Vue({
|
|||
app.skipToPreviousItem()
|
||||
}
|
||||
},
|
||||
isDisabled() {
|
||||
if(!app.mk.nowPlayingItem || app.mk.nowPlayingItem.attributes.playParams.kind == 'radioStation' || app.mk.queue._position + 1 == app.mk.queue.length) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
async getNowPlayingItemDetailed(target) {
|
||||
try {
|
||||
let u = await app.mkapi(app.mk.nowPlayingItem.playParams.kind,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue