本文整理汇总了Python中urlresolver.plugnplay.interfaces.PluginSettings.get_settings_xml方法的典型用法代码示例。如果您正苦于以下问题:Python PluginSettings.get_settings_xml方法的具体用法?Python PluginSettings.get_settings_xml怎么用?Python PluginSettings.get_settings_xml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类urlresolver.plugnplay.interfaces.PluginSettings
的用法示例。
在下文中一共展示了PluginSettings.get_settings_xml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="PremiumizeMeResolver_username" enable="eq(-1,true)" '
xml += 'type="text" label="username" default=""/>\n'
xml += '<setting id="PremiumizeMeResolver_password" enable="eq(-2,true)" '
xml += 'type="text" label="password" option="hidden" default=""/>\n'
return xml
示例2: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="%s_use_https" type="bool" label="Use HTTPS" default="false"/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_login" type="bool" label="login" default="false"/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_username" enable="eq(-1,true)" type="text" label="Customer ID" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_password" enable="eq(-2,true)" type="text" label="PIN" option="hidden" default=""/>\n' % (self.__class__.__name__)
return xml
示例3: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += (
'<setting id="%s_auto_pick" type="bool" label="Automatically pick best quality" default="false" visible="true"/>'
% (self.__class__.__name__)
)
return xml
示例4: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="movreelResolver_login" '
xml += 'type="bool" label="login" default="false"/>\n'
xml += '<setting id="movreelResolver_username" enable="eq(-1,true)" '
xml += 'type="text" label="username" default=""/>\n'
xml += '<setting id="movreelResolver_password" enable="eq(-2,true)" '
xml += 'type="text" label="password" option="hidden" default=""/>\n'
return xml
示例5: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="%s_login" ' % (self.__class__.__name__)
xml += 'type="bool" label="Login" default="false"/>\n'
xml += '<setting id="%s_username" enable="eq(-1,true)" ' % (self.__class__.__name__)
xml += 'type="text" label="username" default=""/>\n'
xml += '<setting id="%s_password" enable="eq(-2,true)" ' % (self.__class__.__name__)
xml += 'type="text" label="password" option="hidden" default=""/>\n'
return xml
示例6: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="PremiumizeMeResolver_login" '
xml += 'type="bool" label="login" default="false"/>\n'
xml += '<setting id="PremiumizeMeResolver_username" enable="eq(-1,true)" '
xml += 'type="text" label="Customer ID" default=""/>\n'
xml += '<setting id="PremiumizeMeResolver_password" enable="eq(-2,true)" '
xml += 'type="text" label="PIN" option="hidden" default=""/>\n'
return xml
示例7: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="%s_authorize" type="bool" label="I have a Real Debrid Account" default="false"/>\n' % (self.__class__.__name__)
xml += '<setting type="lsep" label="***RD Authorization will be performed when you select the first RD link***"/>\n'
xml += '<setting id="%s_autopick" type="bool" label="Choose Primary Link Automatically" default="false"/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_token" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_refresh" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_client_id" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_client_secret" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
return xml
示例8: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="%s_autopick" type="bool" label="Choose Primary Link Automatically" default="false"/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_authorize" type="bool" label="Ask for Authorization When Needed" default="false"/>\n' % (self.__class__.__name__)
xml += '<setting type="lsep" label="***Real-Debrid Authorization is performed on first use***"/>\n'
xml += '<setting id="%s_token" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_refresh" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_client_id" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
xml += '<setting id="%s_client_secret" visible="false" type="text" default=""/>\n' % (self.__class__.__name__)
return xml
示例9: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="vidxden_captchax" '
xml += 'type="slider" label="Captcha Image X Position" range="0,500" default="335" option="int" />\n'
xml += '<setting id="vidxden_captchay" '
xml += 'type="slider" label="Captcha Image Y Position" range="0,500" default="30" option="int" />\n'
xml += '<setting id="vidxden_captchah" '
xml += 'type="slider" label="Captcha Image Height" range="0,500" default="180" option="int" />\n'
xml += '<setting id="vidxden_captchaw" '
xml += 'type="slider" label="Captcha Image Width" range="0,1000" default="624" option="int" />\n'
return xml
示例10: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="PurevidResolver_login" '
xml += 'type="bool" label="Login" default="false"/>\n'
xml += '<setting id="PurevidResolver_username" enable="eq(-1,true)" '
xml += 'type="text" label=" username" default=""/>\n'
xml += '<setting id="PurevidResolver_password" enable="eq(-2,true)" '
xml += 'type="text" label=" password" option="hidden" default=""/>\n'
xml += '<setting label="Video quality" id="PurevidResolver_quality" '
xml += 'type="labelenum" values="FLV|Maximum" default="Maximum" />\n'
xml += '<setting label="This plugin calls the Purevid urlresolver - '
xml += 'change settings there." type="lsep" />\n'
return xml
示例11: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting label="Highest Quality" id="%s_quality" ' % self.__class__.__name__
xml += 'type="enum" values="FLV|Maximum" default="0" />\n'
xml += '<setting id="%s_login" ' % self.__class__.__name__
xml += 'type="bool" label="login" default="false"/>\n'
xml += '<setting id="%s_username" enable="eq(-1,true)" ' % self.__class__.__name__
xml += 'type="text" label="username" default=""/>\n'
xml += '<setting id="%s_password" enable="eq(-2,true)" ' % self.__class__.__name__
xml += 'type="text" label="password" option="hidden" default=""/>\n'
xml += '<setting id="%s_notify" ' % self.__class__.__name__
xml += 'type="bool" label="Notify on login" default="false"/>\n'
return xml
示例12: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting id="RealDebridResolver_login" '
xml += 'type="bool" label="login" default="false"/>\n'
xml += '<setting id="RealDebridResolver_username" enable="eq(-1,true)" '
xml += 'type="text" label="username" default=""/>\n'
xml += '<setting id="RealDebridResolver_password" enable="eq(-2,true)" '
xml += 'type="text" label="password" option="hidden" default=""/>\n'
## xml += '<setting id="RealDebridResolver_avoidserver" '
## xml += 'type="bool" label="Avoid Servers" default="false"/>\n'
## xml += '<setting id="RealDebridResolver_server" '
## xml += 'type="text" label="Avoid Servers # (Eg. s01,s02)" default="s09,s18"/>\n'
return xml
示例13: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting label="This plugin calls the veoh addon - '
xml += 'change settings there." type="lsep" />\n'
return xml
示例14: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
return xml
示例15: get_settings_xml
# 需要导入模块: from urlresolver.plugnplay.interfaces import PluginSettings [as 别名]
# 或者: from urlresolver.plugnplay.interfaces.PluginSettings import get_settings_xml [as 别名]
def get_settings_xml(self):
xml = PluginSettings.get_settings_xml(self)
xml += '<setting label="Video Quality" id="%s_quality" ' % self.__class__.__name__
xml += 'type="enum" values="High|Standard" default="0" />\n'
return xml