Added check for DB structure differences in TV DB Mgr
This commit is contained in:
parent
5573558532
commit
46a50de811
|
@ -37,33 +37,36 @@ class channel:
|
|||
pass
|
||||
|
||||
def import_from_mythObject(self, mythObject):
|
||||
self.chanID = mythObject[0]
|
||||
self.channum = mythObject[1]
|
||||
self.freqid = mythObject[2]
|
||||
self.sourceid = mythObject[3]
|
||||
self.callsign = mythObject[4]
|
||||
self.name = mythObject[5]
|
||||
self.icon = mythObject[6]
|
||||
self.finetune = mythObject[7]
|
||||
self.videofilters = mythObject[8]
|
||||
self.xmltvid = mythObject[9]
|
||||
self.recpriority = mythObject[10]
|
||||
self.contrast = mythObject[11]
|
||||
self.brightness = mythObject[12]
|
||||
self.colour = mythObject[13]
|
||||
self.hue = mythObject[14]
|
||||
self.tvformat = mythObject[15]
|
||||
self.commfree = mythObject[16]
|
||||
self.visible = mythObject[17]
|
||||
self.outputfilters = mythObject[18]
|
||||
self.useonairguide = mythObject[19]
|
||||
self.mplexid = mythObject[20]
|
||||
self.serviceid = mythObject[21]
|
||||
self.atscsrcid = mythObject[22]
|
||||
self.tmoffset = mythObject[23]
|
||||
self.atsc_major_chan = mythObject[24]
|
||||
self.atsc_minor_chan = mythObject[25]
|
||||
self.last_record = mythObject[26]
|
||||
try:
|
||||
self.chanID = mythObject[0]
|
||||
self.channum = mythObject[1]
|
||||
self.freqid = mythObject[2]
|
||||
self.sourceid = mythObject[3]
|
||||
self.callsign = mythObject[4]
|
||||
self.name = mythObject[5]
|
||||
self.icon = mythObject[6]
|
||||
self.finetune = mythObject[7]
|
||||
self.videofilters = mythObject[8]
|
||||
self.xmltvid = mythObject[9]
|
||||
self.recpriority = mythObject[10]
|
||||
self.contrast = mythObject[11]
|
||||
self.brightness = mythObject[12]
|
||||
self.colour = mythObject[13]
|
||||
self.hue = mythObject[14]
|
||||
self.tvformat = mythObject[15]
|
||||
self.commfree = mythObject[16]
|
||||
self.visible = mythObject[17]
|
||||
self.outputfilters = mythObject[18]
|
||||
self.useonairguide = mythObject[19]
|
||||
self.mplexid = mythObject[20]
|
||||
self.serviceid = mythObject[21]
|
||||
self.atscsrcid = mythObject[22]
|
||||
self.tmoffset = mythObject[23]
|
||||
self.atsc_major_chan = mythObject[24]
|
||||
self.atsc_minor_chan = mythObject[25]
|
||||
self.last_record = mythObject[26]
|
||||
except IndexError, e:
|
||||
print "Found difference in DB structure. Attempting to continue."
|
||||
|
||||
class show:
|
||||
|
||||
|
|
Loading…
Reference in New Issue