Author: duncan
Date: Fri Jun  8 17:31:52 2007
New Revision: 9674

Modified:
   branches/rel-1/freevo/src/tv/plugins/vbi2srt_record.py

Log:
Fixed an error that DEBUG was not found


Modified: branches/rel-1/freevo/src/tv/plugins/vbi2srt_record.py
==============================================================================
--- branches/rel-1/freevo/src/tv/plugins/vbi2srt_record.py      (original)
+++ branches/rel-1/freevo/src/tv/plugins/vbi2srt_record.py      Fri Jun  8 
17:31:52 2007
@@ -55,6 +55,8 @@
 from event import *
 from tv.channels import FreevoChannels
 
+DEBUG = config.DEBUG
+
 
 class PluginInterface(plugin.Plugin):
     """
@@ -165,7 +167,7 @@
 class RecordApp(childapp.ChildApp):
 
     def __init__(self, app):
-        if config.DEBUG:
+        if DEBUG:
             fname_out = os.path.join(config.LOGDIR, 'vbi2srt-stdout.log')
             fname_err = os.path.join(config.LOGDIR, 'vbi2srt-stderr.log')
             try:
@@ -178,7 +180,7 @@
                 print 'Please set DEBUG=0 or start Freevo from a directory 
that is writeable!'
                 print
             else:
-                _debug_('Record logging to "%s" and "%s"' % (fname_out, 
fname_err), config.DERROR)
+                _debug_('Record logging to "%s" and "%s"' % (fname_out, 
fname_err))
 
         childapp.ChildApp.__init__(self, app)
 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to