Florian Demmer wrote:
> favorites with the same name should be allowed...
>
> for example:
> i get a channel that shows old season one csi on tuesday and season
> four on thursday. i could make a fav for all csi in the schedule, but
> this would also record the replays on wednesday and friday, which
> would collide with other shows to record...

Looking in the code (never tried), it should be possible. But there
was a problem with the recordserver, try the following patch.


Dischi

*** recordserver.py.cvs	Fri Sep 17 21:51:47 2004
--- recordserver.py	Fri Sep 17 21:50:43 2004
***************
*** 421,426 ****
--- 421,433 ----
                      # Hey, something is already recording!
                      if prog.start - 10 <= now:
                          # our new recording should start no later than now!
+                         # check if the new prog is a favorite and the current running is
+                         # not. If so, the user manually added something, we guess it
+                         # has a higher priority.
+                         if self.isProgAFavorite(prog)[0] and \
+                            not self.isProgAFavorite(currently_recording)[0]:
+                             _debug_('ignore %s' % String(prog))
+                             continue
                          sr.removeProgram(currently_recording, 
                                           tv_util.getKey(currently_recording))
                          plugin.getbyname('RECORD').Stop()
***************
*** 608,615 ****
              if prog.title == fav.title:    
                  if fav.channel == tv_util.get_chan_displayname(prog.channel_id) \
                     or fav.channel == 'ANY':
!                     if fav.dow == dow or fav.dow == 'ANY':
!                         if fav.mod == min_of_day or fav.mod == 'ANY':
                              return (TRUE, fav.name)
                          elif abs(int(fav.mod) - int(min_of_day)) <= 8:
                              return (TRUE, fav.name)
--- 615,623 ----
              if prog.title == fav.title:    
                  if fav.channel == tv_util.get_chan_displayname(prog.channel_id) \
                     or fav.channel == 'ANY':
!                     if Unicode(fav.dow) == Unicode(dow) or Unicode(fav.dow) == u'ANY':
!                         if Unicode(fav.mod) == Unicode(min_of_day) or \
!                                Unicode(fav.mod) == u'ANY':
                              return (TRUE, fav.name)
                          elif abs(int(fav.mod) - int(min_of_day)) <= 8:
                              return (TRUE, fav.name)
-- 
On-line, adj.:
        The idea that a human being should always be accessible to a computer.

Attachment: pgpKli52RGAnh.pgp
Description: PGP signature

Reply via email to