本文整理汇总了Python中t0mm0.common.addon.Addon.getAddonInfo方法的典型用法代码示例。如果您正苦于以下问题:Python Addon.getAddonInfo方法的具体用法?Python Addon.getAddonInfo怎么用?Python Addon.getAddonInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t0mm0.common.addon.Addon
的用法示例。
在下文中一共展示了Addon.getAddonInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
# 需要导入模块: from t0mm0.common.addon import Addon [as 别名]
# 或者: from t0mm0.common.addon.Addon import getAddonInfo [as 别名]
plugin_handle = int(sys.argv[1])
mysettings = xbmcaddon.Addon(id = 'plugin.video.pld-cleaner')
profile = mysettings.getAddonInfo('profile')
home = mysettings.getAddonInfo('path')
online_m3u = mysettings.getSetting('online_m3u')
local_m3u = mysettings.getSetting('local_m3u')
online_xml = ('http://shanghai.watchkodi.com/Sections/Sports/Live%20games%20+%20Events/Live%20Football.xml')
local_xml = mysettings.getSetting('local_xml')
xml_regex = '<title>(.*?)</title>\s*<link>(.*?)</link>\s*<thumbnail>(.*?)</thumbnail>'
m3u_thumb_regex = 'tvg-logo=[\'"](.*?)[\'"]'
m3u_regex = '#(.+?),(.+)\s*(.+)\s*'
u_tube = 'http://www.youtube.com'
addon = xbmcaddon.Addon()
addonname = addon.getAddonInfo('name')
addondir = xbmc.translatePath( addon.getAddonInfo('profile') )
base_url = sys.argv[0]
addon_handle = int(sys.argv[1])
args = urlparse.parse_qs(sys.argv[2][1:])
go = True;
xbmcplugin.setContent(addon_handle, 'movies')
net = net.Net()
dialog = xbmcgui.Dialog()
def Main():
addDir('[COLOR yellow]*** Seleccione una Opcion ***[/COLOR]','',0,icon, fanart)
addDir('[COLOR blue]BORRAR CACHE[/COLOR]','0',1000,iconhdm, fanart)