Bugs item #1188197, was opened at 2005-04-22 17:09
Message generated for change (Comment added) made by mvoncken
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1188197&group_id=46652

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Martijn Voncken (mvoncken)
Assigned to: Nobody/Anonymous (nobody)
Summary: cvs: freevo cache aborts on non existing files or mminfo

Initial Comment:
The mediadb is new, or changed recently.

I got some errors on "freevo cache"  
1:aborts on non-existing files
2:aborts on non existing mmpython attributes:

Q&D patch,I did not look for the "real" cause.

--- src/mediadb/db.py   17 Apr 2005 14:57:58 -0000      1.7
+++ src/mediadb/db.py   22 Apr 2005 17:02:01 -0000
@@ -254,6 +254,8 @@
         self.changed = True

         for basename, filename in self.__added:
+            if not os.path.exists(filename):
+                continue
             # check new files
             log.debug('new: %s' % basename)
             ext = basename[basename.rfind('.')+1:].lower()
Index: src/mediadb/parser.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/mediadb/parser.py,v
retrieving revision 1.6
diff -a -u -r1.6 parser.py
--- src/mediadb/parser.py       17 Apr 2005 16:40:23
-0000      1.6
+++ src/mediadb/parser.py       22 Apr 2005 17:02:02 -0000
@@ -162,8 +162,8 @@
     if mminfo:
         # store mmpython data as pickle for faster loading
         object['mminfo'] = cPickle.dumps(simplify(mminfo),
-                                        
pickle.HIGHEST_PROTOCOL)
-        if mminfo.title:
+                                        
pickle.HIGHEST_PROTOCOL)
+        if  hasattr(mminfo,'title') and mminfo.title:
             object['title'] =
mminfo.title.replace('\0', '').strip()
         else:
             object['title'] = title



----------------------------------------------------------------------

>Comment By: Martijn Voncken (mvoncken)
Date: 2005-05-17 07:15

Message:
Logged In: YES 
user_id=48153

Fixed in latest cvs.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1188197&group_id=46652


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to