Change the default overrun time to 10 minutes, and the default path of the XMLTV...
[recordtv.git] / src / rtv_favourite.py
blob059bc92f4aeffc9a95f3a7865633f82e2ed8f26c
1 #!/usr/bin/python
3 import re
4 import rtv_propertiesfile, rtv_programmeinfo
6 class Favourite(rtv_propertiesfile.PropertiesFile):
8 def __init__( self ):
9 self.title_re = None
10 self.channel = None
11 self.deleteAfterDays = None
12 self.priority = None
13 self.record = "yes"
14 self.destination = None
15 self.real_title = None
16 self.unique_subtitles = True
18 self._title_re = None
21 def matches( self, pi ):
23 if self.title_re == None:
24 return False # This favourite is empty
25 else:
26 if self._title_re == None:
27 self._title_re = re.compile( self.title_re + "$" )
29 return ( self._title_re.match( pi.title ) and
30 ( self.channel == None or self.channel == pi.channel ) )
31 # TODO: other things to match on e.g. time, categories