Author: duncan
Date: Wed Dec 20 18:42:39 2006
New Revision: 8749
Modified:
branches/rel-1-6/freevo/src/item.py
Log:
Fixed the problem with "cannot store item"
Modified: branches/rel-1-6/freevo/src/item.py
==============================================================================
--- branches/rel-1-6/freevo/src/item.py (original)
+++ branches/rel-1-6/freevo/src/item.py Wed Dec 20 18:42:39 2006
@@ -113,7 +113,7 @@
try:
os.unlink(f)
except:
- print 'can\'t delete %s' % f
+ print 'can\"t delete %s' % f
@@ -246,8 +246,9 @@
for var, val in self.autovars:
if key == var:
if val == value:
- if not self.delete_info(key):
- _debug_(u'unable to store info for \'%s\'' %
self.name, 0)
+ if self.info[key]:
+ if not self.delete_info(key):
+ _debug_(u'unable to store info for \"%s\"' %
self.name, 0)
else:
self.store_info(key, value)
return
@@ -260,9 +261,9 @@
"""
if isinstance(self.info, mediainfo.Info):
if not self.info.store(key, value):
- _debug_(u'unable to store info for \'%s\'' % self.name, 0)
+ _debug_(u'unable to store info for \"%s\"' % self.name, 0)
else:
- _debug_(u'unable to store info for that kind of item \'%s\'' %
self.name, 0)
+ _debug_(u'unable to store info for that kind of item \"%s\"' %
self.name, 0)
def delete_info(self, key):
-------------------------------------------------------------------------
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