4 import rtv_propertiesfile
, rtv_programmeinfo
6 class Favourite(rtv_propertiesfile
.PropertiesFile
):
11 self
.deleteAfterDays
= None
14 self
.destination
= None
19 def matches( self
, pi
):
21 if self
.title_re
== None:
22 return False # This favourite is empty
24 if self
._title
_re
== None:
25 self
._title
_re
= re
.compile( self
.title_re
+ "$" )
27 return ( self
._title
_re
.match( pi
.title
) and
28 ( self
.channel
== None or self
.channel
== pi
.channel
) )
29 # TODO: other things to match on e.g. time, categories