本文整理汇总了Python中addon.common.addon.Addon.get_icon方法的典型用法代码示例。如果您正苦于以下问题:Python Addon.get_icon方法的具体用法?Python Addon.get_icon怎么用?Python Addon.get_icon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类addon.common.addon.Addon
的用法示例。
在下文中一共展示了Addon.get_icon方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addstv
# 需要导入模块: from addon.common.addon import Addon [as 别名]
# 或者: from addon.common.addon.Addon import get_icon [as 别名]
try: from t0mm0.common.addon import Addon
except:
try: from c_t0mm0_common_addon import Addon
except: pass
addon_id="service.lan.ftp"
addon_name="FTP [B]HUB[/B][I] - FTP Server[/I]"
try: addon=Addon(addon_id,sys.argv);
except:
try: addon=Addon(addon_id,addon.handle);
except: addon=Addon(addon_id,0);
plugin=xbmcaddon.Addon(id=addon_id);
print "%s @ %s" % (addon_name,addon_id)
addonPath=xbmc.translatePath(plugin.getAddonInfo('path'))
try: datapath =xbmc.translatePath(addon.get_profile());
except: datapath =""
try: _artIcon =addon.get_icon();
except: _artIcon =""
try: _artFanart =addon.get_fanart()
except: _artFanart =""
#_artMessage=xbmc.translatePath(os.path.join(addonPath,"msg.png"))
_artPath =xbmc.translatePath(os.path.join(addonPath,"art"))
# ===================================================================
# --- Common Functions
# ===================================================================
def addstv(id,value=''): addon.addon.setSetting(id=id,value=value) ## Save Settings
def addst(r,s=''): return addon.get_setting(r) ## Get Settings
def addpr(r,s=''): return addon.queries.get(r,s) ## Get Params
def tfalse(r,d=False): ## Get True / False
if (r.lower()=='true' ) or (r.lower()=='t') or (r.lower()=='y') or (r.lower()=='1') or (r.lower()=='yes'): return True
elif (r.lower()=='false') or (r.lower()=='f') or (r.lower()=='n') or (r.lower()=='0') or (r.lower()=='no'): return False
else: return d
示例2: Net
# 需要导入模块: from addon.common.addon import Addon [as 别名]
# 或者: from addon.common.addon.Addon import get_icon [as 别名]
import re, os, sys, xbmc, urllib, xbmcplugin, xbmcgui, xbmcaddon
from addon.common.addon import Addon # może trzeba więcej
import weblogingoogle
import StorageServer
from config import ps
from addon.common.net import Net # może trzeba więcej
__settings__ = xbmcaddon.Addon(id="plugin.video.anime-iptv")
addonPath = __settings__.getAddonInfo('path')
iconFav = xbmcaddon.Addon(id="plugin.video.anime-iptv").getAddonInfo('path') + '/art/favorites.png'
net = Net()
_addon = Addon(ps('_addon_id'), sys.argv)
cache = StorageServer.StorageServer(ps('_addon_id'))
#cache = os.path.join(ps('_addon_id'))
_artIcon = _addon.get_icon()
_artFanart = _addon.get_fanart()
def addst(r, s=''):
return _addon.get_setting(r)
loginGoogle = addst('username3', '')
passwordGoogle = addst('password3', '')
def iFL(t):
return '[I]' + t + '[/I]' # For Italic Text ###
def bFL(t):
示例3:
# 需要导入模块: from addon.common.addon import Addon [as 别名]
# 或者: from addon.common.addon.Addon import get_icon [as 别名]
### ############################################################################################################
### ############################################################################################################
### ############################################################################################################
### Plugin Settings ###
IW_addon=Addon('plugin.video.infowars', sys.argv); addon=IW_addon;
addon=IW_addon;
IW_domain_url="infowars.com"
IW_addonPath =xbmc.translatePath('Infowars')
IW_addon_path_art= ""
IW_artPath =xbmc.translatePath(os.path.join(IW_addonPath,IW_addon_path_art))
IW_datapath =xbmc.translatePath(IW_addon.get_profile());
IW_artIcon =IW_addon.get_icon();
IW_artFanart =IW_addon.get_fanart()
IW_plugin = "Infowars"
IW_authors = "Prafit, Spinalcracker"
IW_credits= ""
IW_addon_id="plugin.video.infowars"
IW_database_name="infowars"
IW_plugin_id= "plugin.video.infowars"
IW_database_file=os.path.join(xbmc.translatePath("special://database"),'infowars.db');
IW_debugging= False
AJSIcon = "https://static.infowars.com/images/alex-jones-frontal.jpg"
RNWDKIcon = "https://static.infowars.com/images/real-news-logo.png"
RNWDKFanart = "https://static.infowars.com/images/real-news-with-david-knight.jpg"
WarRoomIcon = "https://static.infowars.com/images/war-room-logo.png"
WarRoomFanart = "https://static.infowars.com/images/war-room-studio.jpg"
CTIcon = "https://imgur.com/PN4jxKi.jpg"