xmltv/grab/is tv_grab_is,1.28,1.29
Geoff <[email protected]>
| Newsgroups | gmane.comp.tv.xmltv.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/xmltv/xmltv/grab/is
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21275
Modified Files:
tv_grab_is
Log Message:
add category code 11 ("entertainment")
Index: tv_grab_is
===================================================================
RCS file: /cvsroot/xmltv/xmltv/grab/is/tv_grab_is,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** tv_grab_is 10 Feb 2014 08:36:11 -0000 1.28
--- tv_grab_is 2 Apr 2014 14:59:12 -0000 1.29
***************
*** 458,462 ****
# That's just too flaky so let's go "old school" for now (otherwise nightly validator fails)
# print STDERR "was: ".$node."\n";
! my %categories = ( '1'=>'children', '2'=>'series', '3'=>'news', '4'=>'educational', '5'=>'sports', '6'=>'misc', '7'=>'movie', '8'=>'culture', '9'=>'music', '13'=>'news magazine' );
my $category = $categories{$node->firstChild->data};
$node->removeChildNodes();
--- 458,462 ----
# That's just too flaky so let's go "old school" for now (otherwise nightly validator fails)
# print STDERR "was: ".$node."\n";
! my %categories = ( '1'=>'children', '2'=>'series', '3'=>'news', '4'=>'educational', '5'=>'sports', '6'=>'misc', '7'=>'movie', '8'=>'culture', '9'=>'music', '11'=>'entertainment', '13'=>'news magazine' );
my $category = $categories{$node->firstChild->data};
$node->removeChildNodes();
***************
*** 491,494 ****
--- 491,495 ----
<entry key="8">culture</entry>
<entry key="9">music</entry>
+ <entry key="11">entertainment</entry>
<entry key="13">news magazine</entry>
</data:category>
***************
*** 528,532 ****
<!-- Two matches for <category>. With funky lookup as explained at http://www.ibm.com/developerworks/library/x-xsltip.html#h2 -->
! <xsl:template match="category[\@value >= 1 and \@value <= 9 or \@value = 13]">
<category>
<xsl:variable name="category_value"><xsl:value-of select="\@value" /></xsl:variable>
--- 529,533 ----
<!-- Two matches for <category>. With funky lookup as explained at http://www.ibm.com/developerworks/library/x-xsltip.html#h2 -->
! <xsl:template match="category[\@value >= 1 and \@value <= 9 or \@value = 11 or \@value = 13]">
<category>
<xsl:variable name="category_value"><xsl:value-of select="\@value" /></xsl:variable>
------------------------------------------------------------------------------