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*ddlmZmZmZmZmZddlmZddlm	Z
ddlmZm
Z
ddlmZddlmZddlmZmZddlmZdd	lmZdd
lmZddlmZddlmZd
efd„ƒYZdefd„ƒYZ defd„ƒYZ!dS(iÿÿÿÿ(tprintDBGtprintExctIsValidFileNametGetFavouritesDirt
GetIconDir(tIPTVFavourites(tTranslateTXT(tCFavItemtCDisplayListItem(tIPTVMultipleInputBox(tIPTVMainNavigatorList(t
getDesktoptgRGB(tScreen(t
MessageBox(t	ChoiceBox(tLabel(t	ActionMaptIPTVFavouritesAddNewGroupWidgetcBs8eZd„Zd„Zd„Zd„Zdd„ZRS(cCsK||_tj||ƒ|jj|jƒ||_t|_d|_
dS(N(tsessionR
t__init__tonShowntappendtonStartt
favouritestFalsetstartedtNonetgroup(tselfRR((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRs			cCs|jj|jƒddlm}|tjƒ}tdƒ|d<t|d<g|d<x¦|j	tdƒtdƒt
|jjƒƒd	gdtd
ƒtdƒggD]T}|tjƒ}|d|d
<|d	|d<|d|dd<|dj|ƒq§W|jj|jt|ƒdS(Niÿÿÿÿ(tdeepcopysAdd new group of favouritesttitletwith_accept_buttontlistsName:sGroup %disDescription:t it	validatoritinputttext(RtremoveRtcopyRR	t
DEF_PARAMSt_tTruet	_validatetlenRt	getGroupsRtDEF_INPUT_PARAMSRRtopenWithCallbacktiptvRetCallback(RRtparamsR$titem((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR%s

WcCs†dt|ƒkr"ttdƒfSt|ƒs>ttdƒfS|jƒ}|jj|ƒ}d|kr|ttdƒ|fStdfS(NisName cannot be empty.s4Name is not valid.
Please remove special characters.iÿÿÿÿsGroup "%s" already exists.t(R,RR)RtlowerRt_getGroupIdxR*(RR%tgroup_idtidx((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR+5scCs¸d|_|rªdt|ƒkrªi|dd6|djƒd6|dd6}|jj|ƒ}|rr||_qª|jj|jt	|jj
ƒdt	jdd	ƒdSn|jƒdS(
NiiRR6itdescttypettimeouti
(RRR,R4RtaddGroupRR/tiptvDoFinishRtgetLastErrort
TYPE_ERROR(RtretArgRtresult((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR0>s	-1cCs|j|jƒdS(N(tcloseR(Rtret((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR<IsN(t__name__t
__module__RRR+R0RR<(((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRs
						tIPTVFavouritesAddItemWidgetcBsAeZdegd„Zd„Zd„Zd„Zdd„ZRS(cCs‡||_tj||ƒ|jj|jƒt|_t|_||_	d|kr_t|_n	t|_||_
||_||_dS(N(RR
RRRRRRR@tfavItemRtsaveLoadR*RtcanAddNewGroupt
ignoredGroups(RRRFRRHRI((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRMs							cCso|jj|jƒd|jkr‡ttƒƒ|_|jjdtƒ}|s‡|j	j
|jt|jj
ƒdtjddƒdSng}|jjƒ}xB|D]:}|d|jkrÂq£n|j|d|dfƒq£W|jr|jtdƒdfƒnt|ƒr=|j	j
|jtdtdƒd	|ƒn.|j	j
|jttd
ƒdtjddƒdS(Nt
groupsOnlyR9R:i
R6RsAdd new group of favouritessSelect favourite groupR!s#There are no other favourite groups(RR&RRRRRtloadR*RR/R<RR=R>R-RIRRHR)R,taddFavouriteToGroupRt	TYPE_INFO(RtststoptionstgroupsR2((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR\s$1
	+cCs|rødt|ƒkrød|dkrÙ|jj|ddtƒ}|ri|jj|j|dƒ}n|rˆ|jj|dƒ}n|r¥t|_	|j
ƒdS|jj|j
t
|jjƒdt
jddƒq|jj|jt|jƒn
|j
ƒdS(NiitforceR9R:i
(R,RRtloadGroupItemsRtaddGroupItemRFtsaveGroupItemsR*R@R<RR/RR=R>taddNewFavouriteGroupR(RR?RN((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRLms	
4cCs–d|krˆt}|jr0|jjtƒ}n|rT|j|d|dfƒq’|jj|jt	|jj
ƒdt	jddƒn
|jƒdS(NRR6R9R:i
(RR*RGRtsaveRLRR/R<RR=R>(RRRN((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRU|s	4cCs|j|jƒdS(N(RAR@(RRB((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR<„sN(	RCRDRR*RRRLRUR<(((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRELs
			tIPTVFavouritesMainWidgetcBs†eZedƒjƒjƒdZedƒjƒjƒdZedkrWed7Zndedƒeee	dƒe	dƒe	d	ƒed
ededf	Z
d
„Zd„Zd„Z
d&d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Zd!„Z d"„Z!d#„Z"d$„Z#d%„Z$RS('ii¾iÃiôisÒ
        <screen name="IPTVFavouritesMainWidget" position="center,center" title="%s" size="%d,%d">
         <ePixmap position="5,9"   zPosition="4" size="30,30" pixmap="%s" transparent="1" alphatest="on" />
         <ePixmap position="335,9" zPosition="4" size="30,30" pixmap="%s" transparent="1" alphatest="on" />
         <ePixmap position="665,9" zPosition="4" size="30,30" pixmap="%s" transparent="1" alphatest="on" />
         
         <widget name="label_red"     position="45,9"  size="300,27" zPosition="5" valign="center" halign="left" backgroundColor="black" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />
         <widget name="label_green"   position="375,9" size="300,27" zPosition="5" valign="center" halign="left" backgroundColor="black" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />
         <widget name="label_yellow"  position="705,9" size="300,27" zPosition="5" valign="center" halign="left" backgroundColor="black" font="Regular;21" transparent="1" foregroundColor="white" shadowColor="black" shadowOffset="-1,-1" />

         <widget name="list"  position="5,80"  zPosition="2" size="%d,%d" scrollbarMode="showOnDemand" transparent="1"  backgroundColor="#00000000" enableWrapAround="1" />
         <widget name="title" position="5,47"  zPosition="1" size="%d,23" font="Regular;20"            transparent="1"  backgroundColor="#00000000"/>
        </screen>sFavourites managersred.pngs	green.pngs
yellow.pngi
iii‡cCsé||_tj||ƒ|jj|jƒ|jj|jƒd|_	t
|_d|_t
|_
tdƒ|_tdƒ|_t
|_ttdƒƒ|d<ttdƒƒ|d<t|jƒ|d<ttd	ƒƒ|d
<tƒ|d<|dj|jƒtdd
dgi|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6|j d6|j d6|j d6|j d6|j d6|j d6|j d6|j d 6d!ƒ|d"<d#|_!t
|_"dS($Ns:groups:sEnable reorderingsDisable reorderingsFavourites groupsRsRemove groupt	label_redtlabel_yellows
Add new grouptlabel_greenR!tColorActionst
WizardActionstListboxActionstbacktcanceltoktredtyellowtgreentuptdowntlefttrighttmoveUptmoveDowntmoveToptmoveEndthometendtpageUptpageDowniþÿÿÿtactionsi(#RR
RRRRtonCloset"_IPTVFavouritesMainWidget__onCloseRRRRtmenutmodifiedR)tIDS_ENABLE_REORDERINGtIDS_DISABLE_REORDERINGtreorderingModeRR
tconnectSelChangedtonSelectionChangedRtkeyExittkeyOKtkeyRedt	keyYellowtkeyGreentkeyUptkeyDowntkeyLefttkeyRighttkeyDroptprevIdxtduringMoving(RR((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR¢sP						



















	cCs|dj|jƒdS(NR!(tdisconnectSelChangedRy(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyt	__onCloseÓscCsƒ|jj|jƒttƒƒ|_|jjdtƒ}|su|jj	|j
t|jjƒdtj
ddƒdS|jƒdS(NRJR9R:i
(RR&RRRRRKR*RR/R<RR=R>tdisplayList(RRN((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRÖs1cCs|jƒdS(N(RA(RRB((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR<ßscCsGg}d|jkrq|jjƒ}x|D]?}td|ddtjƒ}|d|_|j|fƒq+WnÁ|j|jƒs‡dS|jj|jƒ\}}|s×|j	j
t|jjƒdtj
ddƒdSxXtt|ƒƒD]D}||}td|jd|jƒ}||_|j|fƒqêW|dj|ƒdS(	Ns:groups:tnameRR9R6R:i
R!(RsRR-Rt
TYPE_CATEGORYtprivateDataRRRt
getGroupItemsRtopenRR=R>trangeR,R‰R9tsetList(RR!RPR2tdItemRNtitemsR7((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRˆâs&

+
	cCsK|jj|ƒ}|sG|jjt|jjƒdtjddƒtStS(NR9R:i
(	RRRRRRR=R>RR*(RtgroupIdRN((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRR÷s
+cCsdS(N((R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRyþscCsÓd|jkrK|jr%|jƒn|jr;|jƒqÏ|jtƒn„|djtdƒƒ|djtdƒƒ|djtdƒƒd|_|j	ƒy|dj
|jƒWntk
rÎnXdS(	Ns:groups:RsFavourites groupsRXsRemove groupRZs
Add new groupR!(
RsR…t_changeModeRtt
askForSaveRARtsetTextR)RˆtmoveToIndexR„t	Exception(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRzs	
	
	

cCs/|jj|jtdtdƒdtjƒdS(NR%s
Save changes?R9(RR/RVRR)t
TYPE_YESNO(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR”scCsh|rW|jjƒsJ|jj|jt|jjƒdtjddƒdS|jƒn|jt	ƒdS(NR9R:i
(
RRVRR/tcloseAfterSaveRR=R>RAR(RRB((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRVs1
cCs|jtƒdS(N(RAR*(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR™scCsL|jr,d|jƒkr(|jƒndSd|jkrH|jƒ}d|krWdS|j|_y2|djtdƒ|jj	|jƒdƒWnt
k
r¯tƒnX|djtdƒƒ|djtdƒƒy|djƒ|_
Wnt
k
rd	|_
nX|jƒy|djd	ƒWqHt
k
rDqHXndS(
Ns:groups:RsItems in group "%s"RXsRemove itemRZsAdd item to groupR!i(RwRtgetSelectedItemR“RsR‹R•R)RtgetGroupR—RtgetCurrentIndexR„RˆR–(Rtsel((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR{s0	
2




cCs½|jr
dS|jƒ}d|kr)dSt}d|jkrV|jj|jƒ}n|jj|j|jƒ}|s¦|j	j
t|jjƒdtj
ddƒdSt|_|jƒdS(Ns:groups:R9R:i
(R…RšRR*RsRtdelGroupR‹tdelGroupItemRRRR=R>RtRˆ(RRRN((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR|3s	+	cCsŸd|jƒkr›|jr;t|_|dj|jƒnt|_|dj|jƒ|jrx|jrx|j	ƒq›|jr›|jr›|j	ƒq›ndS(NRY(
RRšRwRR•RuR*RvR…R“(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR}@s			
cCs÷tdƒd|jkr8|jj|jt|jƒn»d|jƒkrNdS|j	|jƒsddS|jj
|jƒ\}}|s´|jjt|jj
ƒdtjddƒdS||djƒ}|jj|jt||jt|jgƒdS(NsG>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> keyGreen 1s:groups:R9R:i
R!(RRsRR/t_groupAddedRRRRšRRRŒRRR=R>Rœt_itemClonedRER(RRNR‘RF((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR~Ns
+cCsbd|kr^t|_|jƒy(|djt|jjƒƒdƒWq^tk
rZq^XndS(NR!i(	RR*RtRˆR–R,RR-R—(RR((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR \s	
(
cCs|rt|_ndS(N(R*Rt(RRB((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR¡cscCs`|js/|djjtdƒƒt|_n#|djjtdƒƒt|_|jƒdS(NR!iÿiÿÿÿ(R…tinstancetsetForegroundColorSelectedRR*RRˆ(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR“fs		cCsÌ|djdk	rÈ|jr±|djƒ}|djj|ƒ|djƒ}d|jkrw|jj||ƒ}n|jj|||jƒ}|rÅt	|_
|jƒqÅqÈ|djj|ƒndS(NR!s:groups:(R¢RR…Rœt
moveSelectionRsRt	moveGroupt
moveGroupItemR*RtRˆ(RtkeytcurIndextnewIndexRN((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pytmoveItemos		cCs1|djdk	r-|j|djjƒndS(NR!(R¢RRªRh(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR}scCs1|djdk	r-|j|djjƒndS(NR!(R¢RRªRi(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR€scCs1|djdk	r-|j|djjƒndS(NR!(R¢RRªRn(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR…scCs1|djdk	r-|j|djjƒndS(NR!(R¢RRªRo(R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyR‚‰scCsdS(N((R((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRƒscCs9d}y|djjƒd}Wntk
r4nX|S(NR!i(RtltgetCurrentSelectionR—(RR((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRšs
N(%RCRDRtsizetwidthtsz_wtheighttsz_hR)RtskinRRrRRR<RˆRRRyRzR”RVR™R{R|R}R~R R¡R“RªRR€RR‚RƒRš(((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyRW‡sJ

					1												
												N("t-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRRRt2Plugins.Extensions.IPTVPlayer.tools.iptvfavouritesRt7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRR)t.Plugins.Extensions.IPTVPlayer.components.ihostRRt=Plugins.Extensions.IPTVPlayer.components.iptvmultipleinputboxR	t1Plugins.Extensions.IPTVPlayer.components.iptvlistR
tenigmaRRtScreens.ScreenR
tScreens.MessageBoxRtScreens.ChoiceBoxRtComponents.LabelRtComponents.ActionMapRRRERW(((sY/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvfavouriteswidgets.pyt<module>s(1;