• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python xbmcplugin.openSettings函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中xbmcplugin.openSettings函数的典型用法代码示例。如果您正苦于以下问题:Python openSettings函数的具体用法?Python openSettings怎么用?Python openSettings使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了openSettings函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: loadSettings

	def loadSettings(self):
		log( " > loadSettings()")

		def _checkSettings():
			# check mandatory settings are set
			self.email = xbmcplugin.getSetting( "user_email" )
			self.password = xbmcplugin.getSetting( "user_password" )
			ok = bool( self.email and self.password )
			log(" _checkSettings() ok=%s" % ok)
			return ok

		ok = _checkSettings()
		if not ok:
			# call settings menu - if xbmc builds has feature
			try:
				if ( os.environ.get( "OS", "n/a" ) == "xbox" ):
					xbmc.sleep( 2000 )
				xbmcplugin.openSettings(sys.argv[0])
				ok = _checkSettings()
			except:
				# builtin missing from build - inform user to use ContextMenu for settings
				messageOK(__plugin__, __lang__(30901), __lang__(30902), __lang__(30903))

		log( "< loadSettings() ok=%s" % ok)
		return ok
开发者ID:drrlramsey,项目名称:xbmc-addons,代码行数:25,代码来源:xbmcplugin_categories.py


示例2: mainlist

def mainlist(params,url,category):
	xbmc.output("[configuracion.py] mainlist")
	
	# Verifica ruta de descargas
	downloadpath = downloadtools.getDownloadPath()
	downloadlistpath = downloadtools.getDownloadListPath()
	
	xbmcplugin.openSettings( sys.argv[ 0 ] )
开发者ID:HackJoues,项目名称:pelisalacarta-personal-fork,代码行数:8,代码来源:configuracion.py


示例3: showSettingsWindow

    def showSettingsWindow(self):
        if (self.__bIsDharma):
            self.__oSettings.openSettings()
        else:
            try:		
		xbmcplugin.openSettings( sys.argv[ 0 ] )
            except:
		pass
开发者ID:balazero,项目名称:venom-xbmc-addons,代码行数:8,代码来源:config.py


示例4: openSettings

def openSettings():
	
	# Nuevo XBMC
	if DHARMA:
		__settings__.openSettings()
	# Antiguo XBMC
	else:
		xbmcplugin.openSettings( sys.argv[ 0 ] )
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:8,代码来源:config.py


示例5: openPluginSettings

def openPluginSettings():
	'''Abre la pantalla de configuración del Plugin
	
	Adaptado a los cambios en los plugins a partir de PRE10.5
	'''
	dlog ('[xbmctools] openPluginSettings')

	if VERSION_XBMC <= 28764:
		xbmcplugin.openSettings( sys.argv[ 0 ] )
	else:
		sys.modules["__main__"].__settings__.openSettings()
开发者ID:HackJoues,项目名称:pelisalacarta-personal-fork,代码行数:11,代码来源:xbmctools.py


示例6: openSettings

 def openSettings( self ):
     # is this the first time plugin was run and user has not set email
     if ( not sys.argv[ 2 ] and xbmcplugin.getSetting( "username" ) == "" and xbmcplugin.getSetting( "runonce" ) == "" ):
         # set runonce
         xbmcplugin.setSetting( "runonce", "1" )
         # sleep for xbox so dialogs don't clash. (TODO: report this as a bug?)
         if ( os.environ.get( "OS", "n/a" ) == "xbox" ):
             xbmc.sleep( 2000 )
         # open settings
         xbmcplugin.openSettings( sys.argv[ 0 ] )
     # we need to get the users email
     self.username = xbmcplugin.getSetting( "username" )
开发者ID:drrlramsey,项目名称:xbmc-addons,代码行数:12,代码来源:xbmcplugin_categories.py


示例7: openSettings

def openSettings():

	# Nuevo XBMC
	if DHARMA:
		__settings__.openSettings()
	# Antiguo XBMC
	else:
		try:
			import xbmcplugin
			xbmcplugin.openSettings( sys.argv[ 0 ] )
		except:
			pass
开发者ID:jorik041,项目名称:pelisalacarta-personal-fork,代码行数:12,代码来源:config.py


示例8: openSettings

 def openSettings(self):
     try:
         # is this the first time plugin was run and user has not set email
         if not sys.argv[2] and xbmcplugin.getSetting("username") == "" and xbmcplugin.getSetting("runonce") == "":
             # set runonce
             xbmcplugin.setSetting("runonce", "1")
             # sleep for xbox so dialogs don't clash. (TODO: report this as a bug?)
             if os.environ.get("OS", "n/a") == "xbox":
                 xbmc.sleep(2000)
             # open settings
             xbmcplugin.openSettings(sys.argv[0])
     except:
         # new methods not in build
         pass
开发者ID:nolenfelten,项目名称:xbmc-addons,代码行数:14,代码来源:xbmcplugin_categories.py


示例9: loadSettings

    def loadSettings(self):
        """ Settings are set in the script, this is just to check all settings exist """
        log("> loadSettings")

        self.settings = reeplayit.ReeplayitSettings()
        success = self.settings.check()
        if not success:
            # call settings menu - if xbmc builds has feature
            try:
                if os.environ.get("OS", "n/a") == "xbox":
                    xbmc.sleep(2000)
                xbmcplugin.openSettings(sys.argv[0])
                success = self.settings.check()
            except:
                # builtin missing from build - inform user to use ContextMenu for settings
                traceback.print_exc()
                messageOK(__lang__(0), __lang__(107))

        log("< loadSettings() success=%s" % success)
        return success
开发者ID:nolenfelten,项目名称:xbmc-addons,代码行数:20,代码来源:default.py


示例10: _run_once

 def _run_once( self ):
     # is this the first time plugin was run and user has not set email
     if ( not sys.argv[ 2 ] and xbmcplugin.getSetting( "user_id" ) == "" and xbmcplugin.getSetting( "runonce" ) != "1" and xbmcplugin.getSetting( "runonce" ) != "2" ):
         # set runonce
         xbmcplugin.setSetting( "runonce", "1" )
         # sleep for xbox so dialogs don't clash. (TODO: report this as a bug?)
         if ( os.environ.get( "OS", "n/a" ) == "xbox" ):
             xbmc.sleep( 2000 )
         # open settings
         xbmcplugin.openSettings( sys.argv[ 0 ] )
     # check again to see if authentication is necessary
     if ( not sys.argv[ 2 ] and xbmcplugin.getSetting( "user_id" ) != "" and xbmcplugin.getSetting( "runonce" ) != "2" and xbmcplugin.getSetting( "authtoken" ) =="" ):
         # set runonce
         xbmcplugin.setSetting( "runonce", "2" )
         # sleep for xbox so dialogs don't clash. (TODO: report this as a bug?)
         if ( os.environ.get( "OS", "n/a" ) == "xbox" ):
             xbmc.sleep( 2000 )
         # ask user if they want to authorize
         ok = xbmcgui.Dialog().yesno( xbmc.getLocalizedString( 30907 ), xbmc.getLocalizedString( 30908 ), "", xbmc.getLocalizedString( 30909 ), xbmc.getLocalizedString( 30910 ), xbmc.getLocalizedString( 30911 ) )
         # authorize
         if (ok ):
             self._authorize()
开发者ID:nuka1195,项目名称:plugin.image.flickr,代码行数:22,代码来源:categories.py


示例11: int

from convert import set_entity_or_charref
from convert import translate_string

Language = xbmc.Language(os.getcwd())
#variables
OK = True
db_path = os.path.join(xbmc.translatePath( "special://profile/Database/" ), "MyMusic7.db")
xmlfile = os.path.join( BASE_RESOURCE_PATH , "temp.xml" )
artist_url = "http://www.xbmcstuff.com/music_scraper.php?&id_scraper=OIBNYbNUYBCezub&t=artists"
album_url = "http://www.xbmcstuff.com/music_scraper.php?&id_scraper=OIBNYbNUYBCezub&t=cdarts"
cross_url = "http://www.xbmcstuff.com/music_scraper.php?&id_scraper=OIBNYbNUYBCezub&t=cross"
DIALOG_PROGRESS = xbmcgui.DialogProgress()

try: storage=( "skin", "albumfolder" )[ int( xbmcplugin.getSetting("folder") ) ]
except:
    xbmcplugin.openSettings(sys.argv[0])
    storage=( "skin", "albumfolder" )[ int( xbmcplugin.getSetting("folder") ) ]
print "storage = %s" % storage
if storage == "skin":
    cdart_path = os.path.join(xbmc.translatePath("special://skin\media"),"backdrops","artist_fanart","cd")
    if not os.path.exists(cdart_path): os.makedirs(cdart_path)
    print cdart_path

def addLink(name,url,iconimage):
        ok=True
        liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        liz.setInfo( type="Video", infoLabels={ "Title": name } )
        ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
        return ok

def addDir(name,url,mode,iconimage):
开发者ID:Quihico,项目名称:passion-xbmc,代码行数:31,代码来源:default.py


示例12: open_settings

def open_settings():
	if __has_addons__:
		__addon__.openSettings() 
	else:
		xbmcplugin.openSettings(sys.argv[ 0 ])
开发者ID:danielvijge,项目名称:plugin.video.ustvvod,代码行数:5,代码来源:_addoncompat.py


示例13: open_settings

def open_settings():
    import xbmcplugin
    import sys
    xbmcplugin.openSettings( sys.argv[ 0 ] )
开发者ID:Zanzibar82,项目名称:pelisalacarta,代码行数:4,代码来源:config.py


示例14: mainlist

def mainlist(params,url,category):
	xbmc.output("[configuracion.py] mainlist")
	xbmcplugin.openSettings( sys.argv[ 0 ] )
开发者ID:hmemar,项目名称:xbmc-tvalacarta,代码行数:3,代码来源:configuracion.py


示例15: open_settings

def open_settings():
    xbmcplugin.openSettings( sys.argv[ 0 ] )
开发者ID:CarlosCondor,项目名称:pelisalacarta-xbmc-plus,代码行数:2,代码来源:config.py


示例16: configuracion

def configuracion(params,url,category):
	xbmc.output("[goear.py] configuracion")
	xbmcplugin.openSettings( sys.argv[ 0 ] )
开发者ID:hmemar,项目名称:xbmc-tvalacarta,代码行数:3,代码来源:goear.py


示例17: open_settings

def open_settings():
    print "OPEN SETTINGS"
    print sys.argv[0]
    xbmcplugin.openSettings(sys.argv[0])
开发者ID:plutec,项目名称:seriesly_xbmc,代码行数:4,代码来源:config.py


示例18: Thumbnails

sys.path.append( os.path.join( BASE_RESOURCE_PATH, "platform_libraries", env ) )

#import platform's librairies
from pysqlite2 import dbapi2 as sqlite3
import elementtree.ElementTree as ET
from PIL import Image
from file_item import Thumbnails
thumbnails = Thumbnails()

#chargement des settings

    
    
try: resolution=( "500", "356" )[ int( xbmcplugin.getSetting("resolution") ) ]
except:
    xbmcplugin.openSettings(sys.argv[0])
    resolution=( "500", "356" )[ int( xbmcplugin.getSetting("resolution") ) ]

try:
    clearart_in_tv_folder=(False,True)[ int( xbmcplugin.getSetting("clearart folder") ) ]
except: print_exc()
print "clearart_in_tv_folder= %s" % clearart_in_tv_folder

if not clearart_in_tv_folder:
    print "skin folder"
    try: clearart_path=xbmcplugin.getSetting("path")
    except:
        xbmcplugin.openSettings(sys.argv[0])
        clearart_path=xbmcplugin.getSetting("path")
    if clearart_path == "special://skin": xbmcplugin.openSettings(sys.argv[0])
    if clearart_path.startswith( "special://" ): clearart_path = xbmc.translatePath( clearart_path )
开发者ID:Quihico,项目名称:passion-xbmc,代码行数:31,代码来源:default.py



注:本文中的xbmcplugin.openSettings函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python xbmcplugin.setContent函数代码示例发布时间:2022-05-26
下一篇:
Python xbmcplugin.getSetting函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap