channel names in conf files

Kevin Groeneveld <[email protected]>
Newsgroups gmane.comp.tv.xmltv.devel
Message-ID <CABF+-6XG-8my9CE2Ptd1YpzGrd-_d4Crj4hGmef=k7a21ZM=vA@mail.gmail.com>
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

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e

_______________________________________________
xmltv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltv-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.