add dummy cover as fallback

This commit is contained in:
vv01f 2022-07-19 11:56:58 +02:00
parent 0ffcd5f65d
commit 6b0dd13484
1 changed files with 6 additions and 1 deletions

View File

@ -78,7 +78,12 @@
</xsl:choose>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="image"/></xsl:attribute>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="image != ''"><xsl:value-of select="image"/></xsl:when>
<xsl:otherwise>covers/dummy.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="$alt"/></xsl:attribute>
<xsl:attribute name="width">105</xsl:attribute>
<xsl:attribute name="height">150</xsl:attribute>