Author: rshortt
Date: Tue Mar  7 15:20:53 2006
New Revision: 8052

Modified:
   trunk/core/src/ipc/epg.py

Log:
Added xmltv_grabber and log level options.


Modified: trunk/core/src/ipc/epg.py
==============================================================================
--- trunk/core/src/ipc/epg.py   (original)
+++ trunk/core/src/ipc/epg.py   Tue Mar  7 15:20:53 2006
@@ -62,12 +62,23 @@
         desc=_('Use XMLTV file to populate database.')),
     Var(name='xmltv_file', default='',
         desc=_('Location of XMLTV data file.')),
+    Var(name='xmltv_grabber', default='',
+        desc=_('If you want to run an XMLTV grabber to fetch your listings\n'
+               'set this to the full path of your grabber program plus any\n'
+               'additional arguments.')),
+    Var(name='xmltv_days', default=5,
+        desc=_('How many days of XMLTV data you want to fetch.')),
+    Var(name='xmltv_sort', default='',
+        desc=_('Set this to the path of the tv_sort program if you need to\n'
+               'sort your listings.')),
     Var(name='use_zap2it', default=0,
         desc=_('Use Zap2it service to populate database.')),
     Var(name='zap2it_username', default='',
         desc=_('Zap2it username.')),
     Var(name='zap2it_password', default='',
         desc=_('Zap2it password.')),
+    Var(name='log_level', type=('CRITICAL', 'ERROR', 'WARNING', 'INFO', 
'DEBUG'), default='WARNING',
+        desc=_('The log level of the server: CRITICAL, ERROR, WARNING, INFO, 
DEBUG.')),
     ])
 
 config.load('/etc/freevo/epg.conf')
@@ -87,9 +98,11 @@
     else:
         address = config.address
 
+    loglevel = getattr(logging, config.log_level)
+
     guide = kaa.epg2.connect(config.database, address,
-                             logfile='%s/epg-%s.log' % (freevo.conf.LOGDIR, 
os.getuid()), 
-                             loglevel=logging.INFO)
+                             logfile='%s/epg-%s' % (freevo.conf.LOGDIR, 
os.getuid()), 
+                             loglevel=loglevel)
 
     return guide
 


-------------------------------------------------------
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