Added priorities to favourites, so we can resolve clashes. Added clash-resolving...
[recordtv.git] / src / rtv_programmeinfo.py
blob08d6052925b0f078ffa23a3e8b2e869aa6f21bf9
1 #!/usr/bin/python
3 import rtv_propertiesfile
5 class ProgrammeInfo( rtv_propertiesfile.PropertiesFile ):
7 def __init__( self ):
8 self.title = None
9 self.sub_title = None
10 self.description = None
11 self.channel = None
12 self.channel_pretty = None
13 self.startTime = None
14 self.endTime = None
15 self.categories = []
16 self.atJob = None
17 self.deleteTime = None
18 self.priority = None
21 def clashes_with( self, otherPi ):
23 return ( ( otherPi.startTime >= self.startTime and
24 otherPi.startTime < self.endTime )
26 ( self.startTime >= otherPi.startTime and
27 self.startTime < otherPi.endTime ) )
29 def get_priority( self ):
30 if self.priority == None:
31 return 0
32 else:
33 return self.priority