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 {
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,
}

View File

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