Update of /cvsroot/freevo/freevo/src/record/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18585/src/record/plugins

Modified Files:
        generic.py 
Log Message:
add types.py and more debug

Index: generic.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/record/plugins/generic.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** generic.py  20 Dec 2004 21:24:33 -0000      1.12
--- generic.py  22 Dec 2004 19:51:44 -0000      1.13
***************
*** 46,49 ****
--- 46,50 ----
  # record imports
  from record.recorder import Plugin
+ from record.types import *
  
  # get logging object
***************
*** 116,119 ****
--- 117,122 ----
          """
          if self.item and not self.item in recordings:
+             log.info('%s.schedule: recording item no longer in list' % \
+                      self.name)
              self.stop()
          self.recordings = recordings
***************
*** 131,135 ****
          # sort by start time
          recordings.sort(lambda l, o: cmp(l.start,o.start))
!         if recordings[0].status == 'recording':
              # the first one is running right now, so the timer
              # should be set to the next one
--- 134,138 ----
          # sort by start time
          recordings.sort(lambda l, o: cmp(l.start,o.start))
!         if recordings[0].status == RECORDING:
              # the first one is running right now, so the timer
              # should be set to the next one
***************
*** 240,244 ****
              # nothing to stop here
              return False
!         log.info('%s.stop: stop recording' % self.name)
          # remove the stop timer, we don't need it anymore
          notifier.removeTimer(self.stop_timer)
--- 243,248 ----
              # nothing to stop here
              return False
!         log.info('%s.stop: stop recording: %s' % \
!                  (self.name, String(self.item.name)))
          # remove the stop timer, we don't need it anymore
          notifier.removeTimer(self.stop_timer)
***************
*** 258,265 ****
              filename = self.item.url[5:]
              if os.path.isfile(filename):
!                 self.item.status = 'saved'
                  self.create_thumbnail(self.item)
              else:
!                 self.item.status = 'failed'
                  self.delete_fxd(self.item)
          else:
--- 262,269 ----
              filename = self.item.url[5:]
              if os.path.isfile(filename):
!                 self.item.status = SAVED
                  self.create_thumbnail(self.item)
              else:
!                 self.item.status = FAILED
                  self.delete_fxd(self.item)
          else:



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to