:-(

--- recordserver.py.org 2006-02-10 03:02:08.000000000 +0100
+++ recordserver.py     2006-02-10 02:37:53.000000000 +0100
@@ -701,18 +703,40 @@
             #     favorite = prog.isFavorite
             # except:
             #     favorite = FALSE
-    
+
             # if prog.start <= last and favorite:
             (isFav, favorite) = self.isProgAFavorite(prog, favs)
+
             if prog.start <= last and isFav:
-                self.removeScheduledRecording(prog)
-    
+
+                # do not yet remove programs that
+                # are currently being recorded:
+                try:
+                    rec_now = prog.isRecording
+                except:
+                    rec_now = False
+
+                if rec_now:
+                    _debug_("not removing currently recorded favorite")
+                else:
+                    self.removeScheduledRecording(prog)
+
         for ch in guide.chan_list:
             for prog in ch.programs:
                 (isFav, favorite) = self.isProgAFavorite(prog, favs)
                 if isFav:
-                    prog.isFavorite = favorite
-                    self.scheduleRecording(prog)
+                    # do not schedule favorites that
+                    # are currently being recorded:
+                    try:
+                        rec_now = prog.isRecording
+                    except:
+                        rec_now = False
+
+                    if rec_now:
+                        _debug_("not scheduling currently recorded
favorite")
+                    else:
+                        prog.isFavorite = favorite
+                        self.scheduleRecording(prog)
 
         return (TRUE, 'favorites schedule updated')
     



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to