From 2d68c459706fb5c08bc35cbba3f0dd0f14ebe158 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 17 Nov 2020 13:46:48 +0100 Subject: [PATCH] fix add favorite and add to recent on certain pages --- src/components/Main.vue | 16 ++++++++++++++-- src/components/Player.vue | 2 ++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/components/Main.vue b/src/components/Main.vue index f1e26b0..c862409 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -135,10 +135,16 @@ export default { } } else { try { + let stationSrc = '' + if (!station.url_resolved) { + stationSrc = station.urlresolved + } else { + stationSrc = station.url_resolved + } const stationMap = { id: -1, name: station.name, - urlresolved: station.url_resolved, + urlresolved: stationSrc, favicon: station.favicon, stationuuid: station.stationuuid, } @@ -205,10 +211,16 @@ export default { /* Put into recent stations */ try { + let stationSrc = '' + if (!station.url_resolved) { + stationSrc = station.urlresolved + } else { + stationSrc = station.url_resolved + } const stationMap = { id: -1, name: station.name, - urlresolved: station.url_resolved, + urlresolved: stationSrc, favicon: station.favicon, stationuuid: station.stationuuid, } diff --git a/src/components/Player.vue b/src/components/Player.vue index 8f1e528..20509ea 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -24,6 +24,8 @@ @change="saveVolume($event)">
{{ player.title }} + {{ player.isPlaying }} + {{ player.isBuffering }}