Author: dmeyer
Date: Sat Mar 18 19:43:23 2006
New Revision: 8101

Modified:
   trunk/tvserver/bin/freevo-epg

Log:
make it possible to print all channels

Modified: trunk/tvserver/bin/freevo-epg
==============================================================================
--- trunk/tvserver/bin/freevo-epg       (original)
+++ trunk/tvserver/bin/freevo-epg       Sat Mar 18 19:43:23 2006
@@ -208,13 +208,23 @@
         print "- Queried %d programs; %s results; %.04f seconds" % \
               (guide.get_num_programs(), len(programs), t1-t0)
 
+    elif sys.argv[1] == 'channels':
+        guide = epg.connect()
+        channels = guide.get_channels()
+        channels.sort(lambda a, b: cmp(a.name, b.name))
+        print 'Channels:'
+        for c in channels:
+            print '', c.name
+
+        
     elif sys.argv[1] in ['help', '--help', '-h', '-H']:
         print
         print 'usage: %s <options> <args>' % sys.argv[0]
         print 'options:'
-        print '         update - Update EPG with XMLTV or other sources.'
-        print '         search - Search EPG for programs use args for search.'
-        print '         help   - This message.'
+        print '         update   - Update EPG with XMLTV or other sources.'
+        print '         search   - Search EPG for programs use args for 
search.'
+        print '         channels - List all channels.'
+        print '         help     - This message.'
         print
         print ' With no options it will start an EPG server.'
         print ' Be sure to check /etc/freevo/epg.conf for available config 
options.'


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to