Delete unused script which records and converts at the same time.
[recordtv.git] / src / rtv_favourite.py
blob1d841e091f29e0dec4a801d4555bfd404372e936
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"
15 self._title_re = None
18 def matches( self, pi ):
20 if self.title_re == None:
21 return False # This favourite is empty
22 else:
23 if self._title_re == None:
24 self._title_re = re.compile( self.title_re + "$" )
26 return ( self._title_re.match( pi.title ) and
27 ( self.channel == None or self.channel == pi.channel ) )
28 # TODO: other things to match on e.g. time, categories