本文整理汇总了Python中ChannelList.ChannelList.fillFeedInfo方法的典型用法代码示例。如果您正苦于以下问题:Python ChannelList.fillFeedInfo方法的具体用法?Python ChannelList.fillFeedInfo怎么用?Python ChannelList.fillFeedInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ChannelList.ChannelList
的用法示例。
在下文中一共展示了ChannelList.fillFeedInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ConfigWindow
# 需要导入模块: from ChannelList import ChannelList [as 别名]
# 或者: from ChannelList.ChannelList import fillFeedInfo [as 别名]
#.........这里部分代码省略.........
self.showList = []
self.getControl(105).setVisible(False)
self.getControl(106).setVisible(False)
### TV TIME ###
#self.dlg = xbmcgui.DialogProgress()
#self.dlg.create("PseudoTV", "Preparing Configuration")
#self.dlg.update(1)
#chnlst = ChannelList()
#chnlst.fillTVInfo()
#self.dlg.update(40)
#chnlst.fillMovieInfo()
#self.dlg.update(80)
#self.mixedGenreList = chnlst.makeMixedList(chnlst.showGenreList, chnlst.movieGenreList)
#self.networkList = chnlst.networkList
#self.studioList = chnlst.studioList
#self.showGenreList = chnlst.showGenreList
#self.movieGenreList = chnlst.movieGenreList
self.dlg = xbmcgui.DialogProgress()
self.dlg.create("TV Time", "Preparing Channel Wizard")
self.dlg.update(0, "Preparing Channel Wizard")
self.chnlst = ChannelList()
self.dlg.update(10, "Preparing Channel Wizard", "Loading TV Settings")
self.chnlst.fillTVInfo()
self.networkList = self.chnlst.networkList
self.studioList = self.chnlst.studioList
self.showGenreList = self.chnlst.showGenreList
self.dlg.update(20, "Preparing Channel Wizard", "Loading Movie Settings")
self.chnlst.fillMovieInfo()
self.movieGenreList = self.chnlst.movieGenreList
self.dlg.update(40, "Preparing Channel Wizard", "Loading Music Settings")
self.chnlst.fillMusicInfo()
self.musicGenreList = self.chnlst.musicGenreList
self.dlg.update(60, "Preparing Channel Wizard", "Loading Live Feed Settings")
self.chnlst.fillFeedInfo()
self.feedList = self.chnlst.feedList
self.dlg.update(80, "Preparing Channel Wizard", "Loading Mixed Genre Settings")
self.mixedGenreList = self.chnlst.makeMixedList(self.showGenreList, self.movieGenreList)
###############
for i in range(len(self.chnlst.showList)):
self.showList.append(self.chnlst.showList[i][0])
self.mixedGenreList.sort(key=lambda x: x.lower())
self.listcontrol = self.getControl(102)
for i in range(200):
theitem = xbmcgui.ListItem()
theitem.setLabel(str(i + 1))
self.listcontrol.addItem(theitem)
### TV TIME ###
self.resolutionList = []
self.resolutionList.append('All')
self.resolutionList.append('SD Only')
self.resolutionList.append('720p or Higher')
self.resolutionList.append('1080p Only')
self.showseqList = []
self.showseqList.append('1 Show')
self.showseqList.append('2 Shows')
self.showseqList.append('3 Shows')
self.showseqList.append('4 Shows')
self.showseqList.append('5 Shows')
self.showseqList.append('6 Shows')
self.showseqList.append('7 Shows')
self.showseqList.append('8 Shows')
示例2: ChannelConfig
# 需要导入模块: from ChannelList import ChannelList [as 别名]
# 或者: from ChannelList.ChannelList import fillFeedInfo [as 别名]
class ChannelConfig(xbmcgui.WindowXMLDialog):
def __init__(self, *args, **kwargs):
self.log("__init__")
xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
self.setCoordinateResolution(1)
self.showingList = True
self.channel = 0
self.channel_type = 9999
self.setting1 = ""
self.setting2 = ""
self.setting3 = ""
self.setting4 = ""
self.setting5 = ""
self.setting6 = ""
self.setting7 = ""
self.setting8 = ""
self.setting9 = ""
self.doModal()
self.log("__init__ return")
def onInit(self):
self.log("onInit")
self.createDirectories()
self.getControl(105).setVisible(False) # Channel Listing Control Group
self.getControl(106).setVisible(False) # Channel Settings Control Group
for i in range(NUMBER_CHANNEL_TYPES):
self.getControl(120 + i).setVisible(False) # Channel Settings
# migrate()
self.prepareConfig()
self.log("onInit return")
def onFocus(self, controlId):
pass
def onAction(self, act):
action = act.getId()
if action == ACTION_PREVIOUS_MENU:
if self.showingList == False:
self.cancelChan()
self.hideChanDetails()
else:
self.close()
def prepareConfig(self):
self.log("prepareConfig")
self.showList = []
self.getControl(105).setVisible(False)
self.getControl(106).setVisible(False)
self.dlg = xbmcgui.DialogProgress()
self.dlg.create("TV Time", "Preparing Channel Wizard")
self.dlg.update(0, "Preparing Channel Wizard")
self.chnlst = ChannelList()
self.dlg.update(10, "Preparing Channel Wizard", "Loading TV Settings")
self.chnlst.fillTVInfo()
self.networkList = self.chnlst.networkList
self.studioList = self.chnlst.studioList
self.showGenreList = self.chnlst.showGenreList
self.dlg.update(20, "Preparing Channel Wizard", "Loading Movie Settings")
self.chnlst.fillMovieInfo()
self.movieGenreList = self.chnlst.movieGenreList
self.dlg.update(40, "Preparing Channel Wizard", "Loading Music Settings")
self.chnlst.fillMusicInfo()
self.musicGenreList = self.chnlst.musicGenreList
self.dlg.update(60, "Preparing Channel Wizard", "Loading Live Feed Settings")
self.chnlst.fillFeedInfo()
self.feedList = self.chnlst.feedList
self.dlg.update(80, "Preparing Channel Wizard", "Loading Mixed Genre Settings")
self.mixedGenreList = self.chnlst.makeMixedList(self.showGenreList, self.movieGenreList)
for i in range(len(self.chnlst.showList)):
self.showList.append(self.chnlst.showList[i][0])
self.mixedGenreList.sort(key=lambda x: x.lower())
self.log("self.networkList " + str(self.networkList))
self.log("self.studioList " + str(self.studioList))
self.log("self.showGenreList " + str(self.showGenreList))
self.log("self.movieGenreList " + str(self.movieGenreList))
self.log("self.musicGenreList " + str(self.musicGenreList))
self.log("self.mixedGenreList " + str(self.mixedGenreList))
self.resolutionList = []
self.resolutionList.append("All")
self.resolutionList.append("SD Only")
self.resolutionList.append("720p or Higher")
self.resolutionList.append("1080p Only")
self.showseqList = []
self.showseqList.append("1 Show")
self.showseqList.append("2 Shows")
self.showseqList.append("3 Shows")
self.showseqList.append("4 Shows")
self.showseqList.append("5 Shows")
self.showseqList.append("6 Shows")
self.showseqList.append("7 Shows")
#.........这里部分代码省略.........