Merge branch 'main' into enhancement/lastfm
This commit is contained in:
commit
4defeb82f0
3 changed files with 14 additions and 4 deletions
|
@ -134,6 +134,7 @@
|
||||||
"term.recentStations": "Recent Stations",
|
"term.recentStations": "Recent Stations",
|
||||||
"term.personalStations": "Personal Stations",
|
"term.personalStations": "Personal Stations",
|
||||||
"term.amLive": "Apple Music Live",
|
"term.amLive": "Apple Music Live",
|
||||||
|
"term.live": "LIVE",
|
||||||
"term.language": "Language",
|
"term.language": "Language",
|
||||||
"term.funLanguages": "Fun",
|
"term.funLanguages": "Fun",
|
||||||
"term.noLyrics": "Loading... / Lyrics not found./ Instrumental.",
|
"term.noLyrics": "Loading... / Lyrics not found./ Instrumental.",
|
||||||
|
|
|
@ -926,11 +926,18 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Used for Live Radio stations to set Metadata
|
||||||
this.mk.addEventListener(MusicKit.Events.timedMetadataDidChange, (e) => {
|
this.mk.addEventListener(MusicKit.Events.timedMetadataDidChange, (e) => {
|
||||||
app.mk.nowPlayingItem.attributes.name = e.title
|
app.mk.nowPlayingItem.attributes.name = e.title
|
||||||
app.mk.nowPlayingItem.attributes.artistName = e.performer
|
app.mk.nowPlayingItem.attributes.artistName = e.performer
|
||||||
app.mk.nowPlayingItem.attributes.albumName = e.album
|
app.mk.nowPlayingItem.attributes.albumName = e.album
|
||||||
app.currentArtUrl = e.links[0].url
|
if(e.links[1]) {
|
||||||
|
app.currentArtUrl = e.links[1].url
|
||||||
|
app.currentArtUrlRaw = e.links[1].url
|
||||||
|
}else{
|
||||||
|
app.currentArtUrl = e.links[0].url
|
||||||
|
app.currentArtUrlRaw = e.links[0].url
|
||||||
|
}
|
||||||
app.mk.nowPlayingItem._songId = e._adamId ? e._adamId : -1
|
app.mk.nowPlayingItem._songId = e._adamId ? e._adamId : -1
|
||||||
app.mk.nowPlayingItem.id = e._adamId ? e._adamId : -1
|
app.mk.nowPlayingItem.id = e._adamId ? e._adamId : -1
|
||||||
})
|
})
|
||||||
|
|
|
@ -78,8 +78,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome--center">
|
<div class="app-chrome--center">
|
||||||
<div class="app-chrome-playback-duration-bottom">
|
<div class="app-chrome-playback-duration-bottom">
|
||||||
<b-row>
|
<b-row v-if="mkReady()">
|
||||||
<b-col sm="auto">{{ convertTime(getSongProgress()) }}</b-col>
|
<b-col sm="auto" v-if="!mk.nowPlayingItem?.isLiveRadioStation">{{ convertTime(getSongProgress()) }}</b-col>
|
||||||
|
<b-col sm="auto" v-else>--:--</b-col>
|
||||||
<b-col>
|
<b-col>
|
||||||
<input type="range" step="0.01" min="0" :style="progressBarStyle()"
|
<input type="range" step="0.01" min="0" :style="progressBarStyle()"
|
||||||
@input="playerLCD.desiredDuration = $event.target.value;playerLCD.userInteraction = true"
|
@input="playerLCD.desiredDuration = $event.target.value;playerLCD.userInteraction = true"
|
||||||
|
@ -87,7 +88,8 @@
|
||||||
@touchend="mk.seekToTime($event.target.value);setTimeout(()=>{playerLCD.desiredDuration = 0;playerLCD.userInteraction = false}, 1000);"
|
@touchend="mk.seekToTime($event.target.value);setTimeout(()=>{playerLCD.desiredDuration = 0;playerLCD.userInteraction = false}, 1000);"
|
||||||
:max="mk.currentPlaybackDuration" :value="getSongProgress()">
|
:max="mk.currentPlaybackDuration" :value="getSongProgress()">
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col sm="auto">{{ convertTime(mk.currentPlaybackDuration) }}</b-col>
|
<b-col sm="auto" v-if="!mk.nowPlayingItem?.isLiveRadioStation">{{ convertTime(mk.currentPlaybackDuration) }}</b-col>
|
||||||
|
<b-col sm="auto" v-else>{{ getLz("term.live") }}</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="app-chrome-playback-controls">
|
<div class="app-chrome-playback-controls">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue