fix add favorite and add to recent on certain pages

This commit is contained in:
Jonas Heinrich 2020-11-17 13:46:48 +01:00
parent 336e51bd1d
commit 2d68c45970
2 changed files with 16 additions and 2 deletions

View File

@ -135,10 +135,16 @@ export default {
} }
} else { } else {
try { try {
let stationSrc = ''
if (!station.url_resolved) {
stationSrc = station.urlresolved
} else {
stationSrc = station.url_resolved
}
const stationMap = { const stationMap = {
id: -1, id: -1,
name: station.name, name: station.name,
urlresolved: station.url_resolved, urlresolved: stationSrc,
favicon: station.favicon, favicon: station.favicon,
stationuuid: station.stationuuid, stationuuid: station.stationuuid,
} }
@ -205,10 +211,16 @@ export default {
/* Put into recent stations */ /* Put into recent stations */
try { try {
let stationSrc = ''
if (!station.url_resolved) {
stationSrc = station.urlresolved
} else {
stationSrc = station.url_resolved
}
const stationMap = { const stationMap = {
id: -1, id: -1,
name: station.name, name: station.name,
urlresolved: station.url_resolved, urlresolved: stationSrc,
favicon: station.favicon, favicon: station.favicon,
stationuuid: station.stationuuid, stationuuid: station.stationuuid,
} }

View File

@ -24,6 +24,8 @@
@change="saveVolume($event)"> @change="saveVolume($event)">
<div class="playerMetadata"> <div class="playerMetadata">
{{ player.title }} {{ player.title }}
{{ player.isPlaying }}
{{ player.isBuffering }}
</div> </div>
</div> </div>
</template> </template>