Ticket #13130: 0003-ttvdb-Ignore-banner-of-just-http-thetvdb.com-banners.patch

File 0003-ttvdb-Ignore-banner-of-just-http-thetvdb.com-banners.patch, 1.3 KB (added by Peter Bennett, 7 years ago)

Patch 3/6

  • mythtv/bindings/python/MythTV/ttvdb/XSLT/tvdbCollection.xsl

    From 40ae4b943ea1293c3e9c0bf02ab178ccb3b89343 Mon Sep 17 00:00:00 2001
    From: Ian Campbell <ijc@hellion.org.uk>
    Date: Sat, 23 Sep 2017 15:48:30 +0100
    Subject: [PATCH 3/6] ttvdb: Ignore banner of just
     "http://thetvdb.com/banners/"
    
    Seen in "ttvdb.py -l en -a GB -C 330432"
    
    Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
    ---
     mythtv/bindings/python/MythTV/ttvdb/XSLT/tvdbCollection.xsl | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/mythtv/bindings/python/MythTV/ttvdb/XSLT/tvdbCollection.xsl b/mythtv/bindings/python/MythTV/ttvdb/XSLT/tvdbCollection.xsl
    index f9464db373..7c576079ef 100644
    a b  
    139139                                </xsl:element>
    140140                            </xsl:when>
    141141                        </xsl:choose>
    142                         <xsl:if test="./banner/text() != ''">
     142                        <xsl:if test="./banner/text() != '' and ./banner/text() != 'http://thetvdb.com/banners/'">
    143143                            <xsl:element name="image">
    144144                                <xsl:attribute name="type">banner</xsl:attribute>
    145145                                <xsl:attribute name="url"><xsl:value-of select="normalize-space(banner)"/></xsl:attribute>