Author: duncan
Date: Fri Jun 29 17:57:34 2007
New Revision: 9735
Modified:
branches/rel-1/freevo/src/video/plugins/dvdbackup.py
Log:
Changed some logging messages to debug messages at level 2
Modified: branches/rel-1/freevo/src/video/plugins/dvdbackup.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/dvdbackup.py (original)
+++ branches/rel-1/freevo/src/video/plugins/dvdbackup.py Fri Jun 29
17:57:34 2007
@@ -47,22 +47,22 @@
"""
def actions(self, item):
- if DEBUG >= 1:
+ if DEBUG >= 2:
#testing stuff
if hasattr(item, 'type'):
- print 'item.type=\"%s\"' % (item.type)
+ _debug_('item.type=\"%s\"' % (item.type))
if hasattr(item, 'mode'):
- print 'item.mode=\"%s\"' % (item.mode)
+ _debug_('item.mode=\"%s\"' % (item.mode))
if hasattr(item, 'info_type'):
- print 'item.info_type=\"%s\"' % (item.info_type)
+ _debug_('item.info_type=\"%s\"' % (item.info_type))
if hasattr(item, 'name'):
- print 'item.name=\"%s\"' % (item.name)
+ _debug_('item.name=\"%s\"' % (item.name))
if hasattr(item, 'filename'):
- print 'item.filename=\"%s\"' % (item.filename)
+ _debug_('item.filename=\"%s\"' % (item.filename))
if hasattr(item, 'parentname'):
- print 'item.parentname=\"%s\"' % (item.parentname)
+ _debug_('item.parentname=\"%s\"' % (item.parentname))
if hasattr(item, 'media') and hasattr(item.media, 'devicename'):
- print 'item.media.devicename=\"%s\"' % (item.media.devicename)
+ _debug_('item.media.devicename=\"%s\"' %
(item.media.devicename))
if item.type == 'video' and item.mode == 'dvd' and hasattr(item,
'info_type'):
if item.info_type == "track": #and item.media and
item.media.devicename:
@@ -100,8 +100,8 @@
#create a filename for the to-be-encoded dvd title
#title = int(self.item.url[6:])
fname = join(config.VIDEO_ITEMS[0][1], "%s_%s.avi" %
(self.item.parent.name, self.title))
- #print title, fname
- print arg
+ #_debug_('title=%s, fname=%s' % (title, fname))
+ _debug_('arg=%r' % (arg))
#unwrap settings tupple
vcodecnr, tgtsize, mpass, vbitrate = arg
@@ -178,7 +178,7 @@
self.menuw = menuw
AlertBox(width=400, height=200, text=_("Encoding started"),
handler=self.mopup).show()
- print "boe"
+ _debug_("boe")
#menuw.delete_menu()
#menuw.delete_menu()
-------------------------------------------------------------------------
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