def clear_catchup(self):
if not self.playing_catchup_channel:
return
self.playing_catchup_channel = False
filename = 'special://profile/addon_data/script.tvguide.fullscreen/catchup_channel.list'
f = xbmcvfs.File(filename,'rb')
alarms = f.read().splitlines()
f.close()
if not alarms:
return
xbmcvfs.delete(filename)
for name in alarms:
xbmc.executebuiltin('CancelAlarm(%s,True)' % name.encode('utf-8', 'replace'))
programList = []
catchup = ADDON.getSetting('catchup.text')
channel = utils.Channel("catchup", catchup, '', "special://home/addons/plugin.video.%s/icon.png" % catchup.lower(), "catchup", True)
self.database.updateProgramList(None,programList,channel)
self.onRedrawEPG(self.channelIdx, self.viewStartDate)
评论列表
文章目录