fix add favorite and add to recent on certain pages
This commit is contained in:
parent
336e51bd1d
commit
2d68c45970
@ -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,
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user