Add support for all cover sources in embedded player
This commit is contained in:
parent
f4964ab3ab
commit
41d444bbbb
|
@ -0,0 +1 @@
|
||||||
|
Added support for all cover sources in the embedded player (#1697).
|
|
@ -258,6 +258,9 @@ function getURLParams () {
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: { Logo },
|
components: { Logo },
|
||||||
|
props: {
|
||||||
|
artistCover: { type: Object, required: false },
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
time,
|
time,
|
||||||
|
@ -455,7 +458,7 @@ export default {
|
||||||
title: t.title,
|
title: t.title,
|
||||||
artist: t.artist,
|
artist: t.artist,
|
||||||
album: t.album,
|
album: t.album,
|
||||||
cover: self.getCover((t.album || {}).cover),
|
cover: self.getCover((t || t.album).cover),
|
||||||
sources: self.getSources(t.uploads)
|
sources: self.getSources(t.uploads)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -98,6 +98,7 @@
|
||||||
scrolling="no"
|
scrolling="no"
|
||||||
frameborder="no"
|
frameborder="no"
|
||||||
:src="iframeSrc"
|
:src="iframeSrc"
|
||||||
|
:artist-cover="cover"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -111,7 +112,8 @@ import _ from '@/lodash'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
type: { type: String, required: true },
|
type: { type: String, required: true },
|
||||||
id: { type: Number, required: true }
|
id: { type: Number, required: true },
|
||||||
|
cover: { type: Object, required: false },
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
const d = {
|
const d = {
|
||||||
|
|
|
@ -320,6 +320,7 @@
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<embed-wizard
|
<embed-wizard
|
||||||
:id="object.artist.id"
|
:id="object.artist.id"
|
||||||
|
:cover="object.artist.cover"
|
||||||
type="artist"
|
type="artist"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue