Add support for all cover sources in embedded player

This commit is contained in:
Ciaran Ainsworth 2022-02-06 17:48:33 +01:00 committed by Georg Krause
parent f4964ab3ab
commit 41d444bbbb
4 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1 @@
Added support for all cover sources in the embedded player (#1697).

View File

@ -258,6 +258,9 @@ function getURLParams () {
export default {
name: 'App',
components: { Logo },
props: {
artistCover: { type: Object, required: false },
},
data () {
return {
time,
@ -455,7 +458,7 @@ export default {
title: t.title,
artist: t.artist,
album: t.album,
cover: self.getCover((t.album || {}).cover),
cover: self.getCover((t || t.album).cover),
sources: self.getSources(t.uploads)
}
})

View File

@ -98,6 +98,7 @@
scrolling="no"
frameborder="no"
:src="iframeSrc"
:artist-cover="cover"
/>
</div>
</div>
@ -111,7 +112,8 @@ import _ from '@/lodash'
export default {
props: {
type: { type: String, required: true },
id: { type: Number, required: true }
id: { type: Number, required: true },
cover: { type: Object, required: false },
},
data () {
const d = {

View File

@ -320,6 +320,7 @@
<div class="description">
<embed-wizard
:id="object.artist.id"
:cover="object.artist.cover"
type="artist"
/>
</div>