Author: duncan
Date: Thu Aug 23 13:54:56 2007
New Revision: 9844

Log:
[ 1779806 ] freevo schedulefavorites crashes because of duplicate flag
Patch from Tanja Kotthaus applied to fix unreproduceable error :)


Modified:
   branches/rel-1/freevo/src/helpers/recordserver.py

Modified: branches/rel-1/freevo/src/helpers/recordserver.py
==============================================================================
--- branches/rel-1/freevo/src/helpers/recordserver.py   (original)
+++ branches/rel-1/freevo/src/helpers/recordserver.py   Thu Aug 23 13:54:56 2007
@@ -1141,7 +1141,9 @@
             (status, favs) = self.getFavorites()
         for fav in favs.values():
             if Unicode(prog.title).lower().find(Unicode(fav.title).lower()) >= 
0:
-                _debug_('NEW: %s'%fav.onlyNew, config.DINFO)
+                if not hasattr(fav, 'onlyNew'):
+                    return TRUE
+                _debug_('NEW: %s' % fav.onlyNew, config.DINFO)
                 if fav.onlyNew == '1':
                     return TRUE
 
@@ -1150,7 +1152,9 @@
             (status, favs) = self.getFavorites()
         for fav in favs.values():
             if Unicode(prog.title).lower().find(Unicode(fav.title).lower()) >= 
0:
-                _debug_('DUP: %s'%fav.allowDuplicates, config.DINFO)
+                if not hasattr(fav, 'allowDuplicates'):
+                    return TRUE
+                _debug_('DUP: %s' % fav.allowDuplicates, config.DINFO)
                 if fav.allowDuplicates == '1':
                     return TRUE
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to