本文整理汇总了Python中ChannelList.ChannelList.getChannelName方法的典型用法代码示例。如果您正苦于以下问题:Python ChannelList.getChannelName方法的具体用法?Python ChannelList.getChannelName怎么用?Python ChannelList.getChannelName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ChannelList.ChannelList
的用法示例。
在下文中一共展示了ChannelList.getChannelName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from ChannelList import ChannelList [as 别名]
# 或者: from ChannelList.ChannelList import getChannelName [as 别名]
#.........这里部分代码省略.........
channelNum = self.chkChannelNum(channelNum)
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_type", "")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_time", "0")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_1", "")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_2", "0")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_changed", "true")
self.myOverlay.setBackgroundStatus("Initializing: Autotuning adding 3D Movies",string2=' ')
#Music Genre
if REAL_SETTINGS.getSetting("autoFindMusicGenres") == "true":
self.log("autoTune, adding Music Genres")
channelNum = baseNum
self.chanlist.fillMusicInfo()
for i in range(len(self.chanlist.musicGenreList)):
channelNum = self.chkChannelNum(channelNum)
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_type", "12")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_time", "0")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_1", uni(self.chanlist.musicGenreList[i]))
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_2", "4")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_changed", "true")
self.myOverlay.setBackgroundStatus("Initializing: Autotuning adding Music Genres",string2=uni(self.chanlist.musicGenreList[i]),progress=int(channelNum*100//CHANNEL_LIMIT))
#Local Directory
if REAL_SETTINGS.getSetting("autoFindVideosLocal") != "":
self.log("autoTune, adding Local Videos")
channelNum = baseNum
channelNum = self.chkChannelNum(channelNum)
LocalVideo = str(REAL_SETTINGS.getSetting('autoFindVideosLocal'))
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_type", "7")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_time", "0")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_1", "" +LocalVideo+ "")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_3", str(MEDIA_LIMIT))
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_4", "1")
self.myOverlay.setBackgroundStatus("Initializing: Autotuning adding Local Directory",string2=self.chanlist.getChannelName(7, channelNum, LocalVideo))
#Youtube - PseudoNetwork
if REAL_SETTINGS.getSetting("autoFindCommunity_PseudoNetworks") == "true" and isCompanionInstalled() == True:
self.log("autoTune, adding PseudoNetworks")
channelNum = baseNum
detail = uni(self.chanlist.requestList('plugin://plugin.video.pseudo.companion/?mode=3000&name=PseudoNetworks&previous=getOnlineMedia&url'))
show_busy_dialog()
for i in detail:
files = re.search('"file" *: *"(.*?)",', i)
filetypes = re.search('"filetype" *: *"(.*?)",', i)
labels = re.search('"label" *: *"(.*?)",', i)
if filetypes and labels and files:
filetype = filetypes.group(1)
name = self.chanlist.cleanLabels(labels.group(1))
file = (files.group(1).replace("\\\\", "\\"))
if filetype == 'directory':
channelNum = self.chkChannelNum(channelNum)
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_type", "15")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_time", "0")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_1", file)
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_2", "")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_3", str(MEDIA_LIMIT))
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_4", "0")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_rulecount", "1")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_rule_1_id", "1")
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_rule_1_opt_1", name)
ADDON_SETTINGS.setSetting("Channel_" + str(channelNum) + "_changed", "true")
self.myOverlay.setBackgroundStatus("Initializing: Autotuning adding PseudoNetworks",string2=name)
hide_busy_dialog()
#Youtube - Seasonal