Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
Ch-_c@sàddlmZmZmZmZmZmZmZddlm	Z	ddl
mZddl
mZddlmZddlmZddlmZmZmZddlmZd	e	fd
„ƒYZde	fd„ƒYZd
S(iÿÿÿÿ(tprintDBGtprintExctGetHostsListt
IsHostEnabledtSaveHostsOrderListt
SortHostsListtGetHostsAliases(tConfigBaseWidget(tTranslateTXT(tgRGB(t
MessageBox(t	ChoiceBox(tconfigtgetConfigListEntrytNumericalTextInput(t
boundFunctiontConfigHostMenucBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsntdƒg|_||_tj||ƒtdƒ|j|_td|tƒt	ƒdgdƒ|_
dS(NsConfigHostMenu.__init__ sConfiguration [%s] services(Plugins.Extensions.IPTVPlayer.hosts.hostt
GetConfigListiÿÿÿÿ(RtlistthostNameRt__init__t_tsetup_titlet
__import__tglobalstlocalsthost(tselftsessionR((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRs
		cCstdƒdS(NsConfigHostMenu.__del__ (R(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyt__del__#scCstdƒtj|ƒdS(NsConfigHostMenu.__onClose (RRt_ConfigHostMenu__onClose(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyt	__onClose&s
cCs/tj|ƒ|jdtdƒ|jƒdS(Ns
E2iPlayer s[%s] - configuration(RtlayoutFinishedtsetTitleRR(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR *s
cCs#|jjƒ|_tj|ƒdS(N(RRRRtrunSetup(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR".scCsFy.t|djƒdtƒs-|jƒnWntk
rAnXdS(NRi(t
isinstancet
getCurrentRR"t	Exception(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pytchangeSubOptions2s

(t__name__t
__module__RRRR R"R&(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRs					tConfigHostsMenucBs×eZd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zddd„Zd„ZRS(cCs‚tdƒg|_g|_g|_g|_t|ƒ|_tj||ƒt	dƒ|_
|j|jƒt|_
t|_dS(NsConfigHostsMenu.__init__ sServices configuration(RRtprivacePoliceWorningListthostsConfigsAvailableListtlistOfHostsNamesRtorgListOfHostsNamesRRRRt$_ConfigHostsMenu__preparHostsConfigstFalsetreorderingEnabledtreorderingMode(RRR,((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR;s
					cCstdƒdS(NsConfigHostsMenu.__del__ (R(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRIscCstdƒtj|ƒdS(NsConfigHostsMenu.__onClose (RRt_ConfigHostsMenu__onClose(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRLs
cCs(tj|ƒ|jtdƒdƒdS(Ns%s services configurationt	E2iPlayer(RR R!R(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR Ps
cCstj|ƒdS(N(RR"(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR"TscCs#|j|jkrtStj|ƒS(N(R-R,tTrueRt	isChanged(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR5ZstsavecCsEd|kr1|j|jkr1t|jƒq1ntj||ƒdS(NR6(R-R,RRtsaveOrCancel(Rt	operation((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR7_scCs4|djƒ}|t|jƒkr0|j|StS(NR(tgetCurrentIndextlenR+R/(RtcurIndex((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyt
isOkActiveescCs4|jr#|djtdƒƒn
tj|ƒdS(Ntkey_oktOK(R0tsetTextRRt
setOKLabel(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR@ks	cCsß|djdkrdS|jr€|jsO|djjtdƒƒt|_n#|djjtdƒƒt|_|jƒdS|dj	ƒ}|dj
|d}|t|jƒkrÎ|j|}|j
|rÛt|ƒrÛt}yttd|tƒtƒdgdƒ|_t|jjƒƒdkr=td|ƒn|jjtd	|ƒt}Wntk
r{td
|ƒnX|sËt|j
|<|jƒ|jjttdƒ|dtjd
dƒqËqÛn
tj|ƒdS(NRiÿiÿÿÿis(Plugins.Extensions.IPTVPlayer.hosts.hostRiÿÿÿÿs5ConfigMenu host "%s" does not have additional configsRs7ConfigMenu host "%s" does not have method GetConfigLists(Service [%s] has no additional settings.ttypettimeouti( tinstancetNoneR0R1tsetForegroundColorSelectedR	R4R/R"R9RR:R,R+RRRRRRRRtopenRR%RtonSelectionChangedR
Rt	TYPE_INFORtkeyOK(RR;tcurrItemRtaddConf((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRIqs:			

(



5cCspg}|js+|jtdƒdfƒn|jtdƒdfƒ|jj|jtdtdƒd|ƒdS(NsEnable reordering modetREORDERING_ENABLEDsDisable reordering modetREORDERING_DISABLEDttitles
Select optionR(R0tappendRRtopenWithCallbackt_changeModeR(Rtoptions((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pytkeyMenu”s
	cCsˆ|r„|ddkr"t|_n|ddkr>t|_n|jswt|_|djjtdƒƒ|jƒn|jƒndS(NiRLRMRiÿÿÿ(	R4R0R/R1RCRER	R"R@(Rtret((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRQœs		
cCsÊ|djƒ}d|krÆt|jƒ|krÆd|krÆt|jƒ|krÆtdƒ|jj||jj|ƒƒ|jj||jj|ƒƒ|jj||jj|ƒƒ|jƒndS(NRis>>>>>>>>>>>>>>>>>>> _moveItem(	R9R:RRtinserttpopR+R,R"(RR;tnewIndex((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyt	_moveItem¨sB
cCsQ|jr@tdƒ|djƒ}tj|ƒ|j|ƒn
tj|ƒdS(Ns>>>>>>>>>>>>>>>>>>> keyUpR(R1RR9RtkeyUpRX(RR;((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRY²s	

cCsQ|jr@tdƒ|djƒ}tj|ƒ|j|ƒn
tj|ƒdS(Ns>>>>>>>>>>>>>>>>>>> keyDownR(R1RR9RtkeyDownRX(RR;((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRZ»s	

cCs|jstj|ƒndS(N(R0Rt	keyPageUp(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR[Äs	cCs|jstj|ƒndS(N(R0RtkeyPageDown(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR\Ès	cCs|jstj|ƒndS(N(R0RtkeyLeft(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR]Ìs	cCs|jstj|ƒndS(N(R0RtkeyRight(R((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR^Ðs	cCsƒ|djƒd|jkr|djƒdjrtdƒ}|jjt|j|djƒdƒtd|dtj	ƒndS(NRisYUsing this host in your country can be illegal.
Do you want to continue at your own risk?ttextRA(
R$R*tvalueRRRPRtprivatePoliceWorningCallbackR
t
TYPE_YESNO(Rtmessage((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pytchangedEntryÔs4cCs%|s!|dkr!t|_q!ndS(N(RDR/R`(RtconfigEntrytarg((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyRaÙscBsâg|_g|_g|_e|ƒ}eƒ}x«|D]£}y‚d}d|dU|jjed|jd||ƒ|ƒƒ|dkrž|jj|ƒn|jje	ƒ|jj|ƒWq7e
k
rÙeƒq7Xq7WdS(sD
        prepar config entries for hosts Enabling/Disabling
        s,optionEntry = config.plugins.iptvplayer.hostNs%sRtipla(Rg(RR+R,RRDROR
tgetR*R4R%R(RR,t
sortedListthostsAliasesRtoptionEntry((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyt__preparHostsConfigsÞs 				
-
N(R'R(RRR2R R"R5R7R<R@RIRSRQRXRYRZR[R\R]R^RdRDRaR.(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyR)9s,									#			
									N(t-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRRRRRt3Plugins.Extensions.IPTVPlayer.components.configbaseRt7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRRtenigmaR	tScreens.MessageBoxR
tScreens.ChoiceBoxRtComponents.configRR
RtTools.BoundFunctionRRR)(((sN/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/confighost.pyt<module>
s4