1
0
mirror of https://github.com/aureliendavid/rsspreview.git synced 2025-08-22 19:28:39 +00:00

basic support for media:thumbnail (#12)

This commit is contained in:
Aurelien David 2019-01-03 16:34:42 +01:00
parent 2d6ec3e206
commit 96ff9b1983
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "RSSPreview", "name": "RSSPreview",
"version": "2.4", "version": "2.5",
"author": "Aurelien David", "author": "Aurelien David",
"homepage_url": "https://github.com/aureliendavid/rsspreview", "homepage_url": "https://github.com/aureliendavid/rsspreview",

View File

@ -4,7 +4,8 @@
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rss1="http://purl.org/rss/1.0/" xmlns:rss1="http://purl.org/rss/1.0/"
exclude-result-prefixes="atom rdf rss1" > xmlns:media="http://search.yahoo.com/mrss/"
exclude-result-prefixes="atom rdf rss1 media" >
<xsl:output method="html" indent="yes" encoding="utf-8" /> <xsl:output method="html" indent="yes" encoding="utf-8" />
@ -54,6 +55,9 @@
<div class="lastUpdated"><xsl:value-of select="pubDate | atom:updated | rss1:pubDate" /></div> <div class="lastUpdated"><xsl:value-of select="pubDate | atom:updated | rss1:pubDate" /></div>
</h3> </h3>
<xsl:if test='.//media:thumbnail/@url'>
<img class="mediaThumb" src="{ .//media:thumbnail/@url }" width="{ .//media:thumbnail/@width }" height="{ .//media:thumbnail/@height }" />
</xsl:if>
<xsl:choose> <xsl:choose>
<xsl:when test="atom:summary"> <xsl:when test="atom:summary">
<div class="feedRawContent" desctype="{atom:summary/@type}"> <div class="feedRawContent" desctype="{atom:summary/@type}">