Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1:/tmp/cvs-serv17345/src/helpers

Modified Files:
        recordserver.py 
Log Message:
Patch from Eirik Meland that stops recording when you remove a recording
program from the recording schedule.  There exists a race condition where 
removing a recording right before it starts recording the entry in the
schedule will go away but recording will start anyways.  We should figure
out a good way to eliminate this.

A similar method should be created for the generic_record.py plugin.


Index: recordserver.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/recordserver.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** recordserver.py     13 Oct 2003 12:49:46 -0000      1.10
--- recordserver.py     15 Oct 2003 12:49:53 -0000      1.11
***************
*** 7,10 ****
--- 7,19 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.11  2003/10/15 12:49:53  rshortt
+ # Patch from Eirik Meland that stops recording when you remove a recording
+ # program from the recording schedule.  There exists a race condition where
+ # removing a recording right before it starts recording the entry in the
+ # schedule will go away but recording will start anyways.  We should figure
+ # out a good way to eliminate this.
+ #
+ # A similar method should be created for the generic_record.py plugin.
+ #
  # Revision 1.10  2003/10/13 12:49:46  rshortt
  # Fixed a bad return in findMatches when there was no search string.
***************
*** 189,192 ****
--- 198,209 ----
          scheduledRecordings.removeProgram(prog, tv.tv_util.getKey(prog))
          self.saveScheduledRecordings(scheduledRecordings)
+         now = time.time()
+         try:
+             recording = prog.isRecording
+         except:
+             recording = FALSE
+ 
+         if prog.start <= now and prog.stop >= now and recording:
+             plugin.getbyname('RECORD').Stop()
         
          return (TRUE, 'recording removed')




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to