Author: duncan
Date: Mon Dec 4 16:29:11 2006
New Revision: 8697
Modified:
branches/rel-1/freevo/src/video/plugins/reencode.py
Log:
Moved some messages to debug messages
Modified: branches/rel-1/freevo/src/video/plugins/reencode.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/reencode.py (original)
+++ branches/rel-1/freevo/src/video/plugins/reencode.py Mon Dec 4 16:29:11 2006
@@ -40,6 +40,7 @@
from gui.AlertBox import AlertBox
from gui.PopupBox import PopupBox
+DEBUG = config.DEBUG
class PluginInterface(plugin.ItemPlugin):
"""
@@ -55,27 +56,27 @@
def actions(self, item):
- #testing stuff
- for d in dir(item):
- print '%s: %s' % (d, eval('item.%s' % d))
- for d in dir(item.info):
- print '%s: %s' % (d, eval('item.info.%s' % d))
- print 'type:', item.type
- if hasattr(item, 'mode'): print 'mode:', item.mode
- if hasattr(item, 'name'): print 'name:', type(item.name)
- if hasattr(item, 'name'): print 'name:', item.name.encode('utf-8')
- if hasattr(item, 'filename'): print 'filename:', item.filename
- if hasattr(item, 'parentname'):
- print item.parentname
- if hasattr(item, 'media'):
- print 'media:', item.media
- if hasattr(item.media, 'devicename'):
- print item.media.devicename
+ if DEBUG >= 2:
+ #testing messages
+ for d in dir(item):
+ print '%s: %s' % (d, eval('item.%s' % d))
+ for d in dir(item.info):
+ print '%s: %s' % (d, eval('item.info.%s' % d))
+ print 'type:', item.type
+ if hasattr(item, 'mode'): print 'mode:', item.mode
+ if hasattr(item, 'name'): print 'name:', type(item.name)
+ if hasattr(item, 'name'): print 'name:', item.name.encode('utf-8')
+ if hasattr(item, 'filename'): print 'filename:', item.filename
+ if hasattr(item, 'parentname'):
+ print item.parentname
+ if hasattr(item, 'media'):
+ print 'media:', item.media
+ if hasattr(item.media, 'devicename'):
+ print item.media.devicename
if item.type == 'video' and item.mode == 'file':
# TODO: use a config variable
(filename, extn) = os.path.splitext(item.filename)
- print '%s=%s' % (filename, extn)
if extn in ['.mpeg','.mpg']:
#for dvd on disc
self.dvdsource = item.filename
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog