Kevin Groeneveld
2016-05-27 00:12:09 UTC
One suggestion I received (
https://github.com/kgroeneveld/tv_grab_sd_json/issues/5) for the
tv_grab_sd_json grabber was to add a description in a comment to the
channel items in the config file. Since I am using
XMLTV::Configure::Writer to write the config this wasn't something I could
easily do in the tv_grab_sd_json program itself.
The following patch seems to achieve the desired result:
Index: Configure.pm
===================================================================
RCS file: /cvsroot/xmltv/xmltv/lib/Configure.pm,v
retrieving revision 1.10
diff -u -r1.10 Configure.pm
--- Configure.pm 12 Jul 2015 00:59:01 -0000 1.10
+++ Configure.pm 26 May 2016 23:57:45 -0000
@@ -335,11 +335,11 @@
{
if( $answers[$i] )
{
- print OUT "channel=$channelid[$i]\n";
+ print OUT "channel=$channelid[$i] # $channelname[$i]\n";
}
else
{
- print OUT "channel!$channelid[$i]\n";
+ print OUT "channel!$channelid[$i] # $channelname[$i]\n";
}
}
This would impact all grabbers that use XMLTV::Configure::Writer. Does
this seem like a good idea?
Kevin
https://github.com/kgroeneveld/tv_grab_sd_json/issues/5) for the
tv_grab_sd_json grabber was to add a description in a comment to the
channel items in the config file. Since I am using
XMLTV::Configure::Writer to write the config this wasn't something I could
easily do in the tv_grab_sd_json program itself.
The following patch seems to achieve the desired result:
Index: Configure.pm
===================================================================
RCS file: /cvsroot/xmltv/xmltv/lib/Configure.pm,v
retrieving revision 1.10
diff -u -r1.10 Configure.pm
--- Configure.pm 12 Jul 2015 00:59:01 -0000 1.10
+++ Configure.pm 26 May 2016 23:57:45 -0000
@@ -335,11 +335,11 @@
{
if( $answers[$i] )
{
- print OUT "channel=$channelid[$i]\n";
+ print OUT "channel=$channelid[$i] # $channelname[$i]\n";
}
else
{
- print OUT "channel!$channelid[$i]\n";
+ print OUT "channel!$channelid[$i] # $channelname[$i]\n";
}
}
This would impact all grabbers that use XMLTV::Configure::Writer. Does
this seem like a good idea?
Kevin