本文整理汇总了Python中ChannelList.ChannelList.myOverlay方法的典型用法代码示例。如果您正苦于以下问题:Python ChannelList.myOverlay方法的具体用法?Python ChannelList.myOverlay怎么用?Python ChannelList.myOverlay使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ChannelList.ChannelList
的用法示例。
在下文中一共展示了ChannelList.myOverlay方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: readConfig
# 需要导入模块: from ChannelList import ChannelList [as 别名]
# 或者: from ChannelList.ChannelList import myOverlay [as 别名]
def readConfig(self):
self.log('readConfig')
# Sleep setting is in 30 minute incriments...so multiply by 30, and then 60 (min to sec)
self.sleepTimeValue = int(REAL_SETTINGS.getSetting('AutoOff')) * 1800
self.log('Auto off is ' + str(self.sleepTimeValue))
self.infoOnChange = REAL_SETTINGS.getSetting("InfoOnChange") == "true"
self.log('Show info label on channel change is ' + str(self.infoOnChange))
self.showChannelBug = REAL_SETTINGS.getSetting("ShowChannelBug") == "true"
self.log('Show channel bug - ' + str(self.showChannelBug))
self.forceReset = REAL_SETTINGS.getSetting('ForceChannelReset') == "true"
self.channelResetSetting = REAL_SETTINGS.getSetting('ChannelResetSetting')
self.log("Channel reset setting - " + str(self.channelResetSetting))
self.channelLogos = xbmc.translatePath(REAL_SETTINGS.getSetting('ChannelLogoFolder'))
self.backgroundUpdating = int(REAL_SETTINGS.getSetting("ThreadMode"))
self.log("Background updating - " + str(self.backgroundUpdating))
self.showNextItem = REAL_SETTINGS.getSetting("EnableComingUp") == "true"
self.log("Show Next Item - " + str(self.showNextItem))
self.hideShortItems = REAL_SETTINGS.getSetting("HideClips") == "true"
self.log("Hide Short Items - " + str(self.hideShortItems))
self.shortItemLength = SHORT_CLIP_ENUM[int(REAL_SETTINGS.getSetting("ClipLength"))]
self.log("Short item length - " + str(self.shortItemLength))
self.channelDelay = int(REAL_SETTINGS.getSetting("ChannelDelay")) * 250
if FileAccess.exists(self.channelLogos) == False:
self.channelLogos = IMAGES_LOC
self.log('Channel logo folder - ' + self.channelLogos)
chn = ChannelList()
chn.myOverlay = self
self.channels = chn.setupList()
if self.channels is None:
self.log('readConfig No channel list returned')
self.end()
return False
self.Player.stop()
self.log('readConfig return')
return True