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

Modified Files:
        favorite.py recording.py 
Log Message:
split config padding variable to start and stop padding

Index: recording.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/record/recording.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** recording.py        22 Dec 2004 19:51:43 -0000      1.13
--- recording.py        30 Dec 2004 11:47:49 -0000      1.14
***************
*** 80,85 ****
          self.url      = ''
          self.fxdname  = ''
!         self.start_padding = config.TV_RECORD_PADDING
!         self.stop_padding  = config.TV_RECORD_PADDING
          for i in info:
              if i == 'subtitle':
--- 80,85 ----
          self.url      = ''
          self.fxdname  = ''
!         self.start_padding = config.TV_RECORD_START_PADDING
!         self.stop_padding  = config.TV_RECORD_STOP_PADDING
          for i in info:
              if i == 'subtitle':
***************
*** 111,114 ****
--- 111,116 ----
          if self.subtitle:
              info['subtitle'] = self.subtitle
+         if self.episode:
+             info['episode'] = self.episode
          if self.url:
              info['url'] = Unicode(self.url)
***************
*** 124,128 ****
          self.id = int(parser.getattr(node, 'id'))
          for child in node.children:
!             for var in ('name', 'channel', 'status', 'subtitle', 'fxdname'):
                  if child.name == var:
                      setattr(self, var, parser.gettext(child))
--- 126,131 ----
          self.id = int(parser.getattr(node, 'id'))
          for child in node.children:
!             for var in ('name', 'channel', 'status', 'subtitle', 'fxdname',
!                         'episode'):
                  if child.name == var:
                      setattr(self, var, parser.gettext(child))
***************
*** 173,179 ****
          node = fxdparser.XMLnode('recording', [ ('id', self.id ) ] )
          for var in ('name', 'channel', 'priority', 'url', 'status',
!                     'subtitle', 'fxdname'):
              if getattr(self, var):
!                 subnode = fxdparser.XMLnode(var, [], Unicode(getattr(self, 
var)) )
                  fxd.add(subnode, node)
          timer = fxdparser.XMLnode('timer', [ ('start', _int2time(self.start)),
--- 176,183 ----
          node = fxdparser.XMLnode('recording', [ ('id', self.id ) ] )
          for var in ('name', 'channel', 'priority', 'url', 'status',
!                     'subtitle', 'fxdname', 'episode'):
              if getattr(self, var):
!                 subnode = fxdparser.XMLnode(var, [],
!                                             Unicode(getattr(self, var)) )
                  fxd.add(subnode, node)
          timer = fxdparser.XMLnode('timer', [ ('start', _int2time(self.start)),

Index: favorite.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/record/favorite.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** favorite.py 28 Nov 2004 16:00:13 -0000      1.9
--- favorite.py 30 Dec 2004 11:47:49 -0000      1.10
***************
*** 68,73 ****
              stop  = int(m[2])*100 + int(m[3])
              self.times.append((start, stop))
!         self.start_padding = config.TV_RECORD_PADDING
!         self.stop_padding  = config.TV_RECORD_PADDING
  
  
--- 68,73 ----
              stop  = int(m[2])*100 + int(m[3])
              self.times.append((start, stop))
!         self.start_padding = config.TV_RECORD_START_PADDING
!         self.stop_padding  = config.TV_RECORD_STOP_PADDING
  
  



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to