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ddlmZddlmZmZddlmZmZddl	m
Z
ddlZddlZd„Z
defd„ƒYZd	efd
„ƒYZdS(iÿÿÿÿ(tTranslateTXT(t	CHostBasetCBaseHostClass(tprintDBGtprintExc(tgetDirectM3U8PlaylistNcCsdS(Nshttp://dancetrippin.tv/((((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pytgettytulstDancetrippinTVcBsžeZd„Zd„Zidd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zdddd„ZRS(c	Cstj|idd6dd6ƒitd6td6td6td6|jd	6|_id
d6dd
6|_t|jƒ|_|jjidd6ƒd|_	d|_
idd6tdƒd6|jƒd6idd6tdƒd6|jƒd6idd6tdƒd6|jƒd6idd6tdƒd6|j
dƒd6idd6tdƒd6|j
dƒd6idd6td ƒd6td!6id"d6td#ƒd6g|_idd6td$ƒd6|j
d%ƒd6idd6td&ƒd6|j
d'ƒd6g|_g|_g|_dS((NsDancetrippinTV.tvthistoryskinomantv.cookietcookiet
with_metadatat
use_cookietload_cookietsave_cookiet
cookiefilesMozilla/5.0s
User-Agents	text/htmltAccepttXMLHttpRequestsX-Requested-Withshttp://www.dancetelevision.net/s<https://frenezy.files.wordpress.com/2010/10/dancetrippin.jpgt
fill_itemstcategorysLATEST CONTENTttitleturltchannelss	CHANNELS tartiststARTISTStPARTIESs/partiestVENUESs/venuestsearchtSearchtsearch_itemtsearch_historysSearch historys
Most featureds/artistss
Alphabetical s/artists/sort/alphabetical(Rt__init__tTruetCOOKIE_FILEt
defaultParamstHEADERtdicttAJAX_HEADERtupdatetMAIN_URLtDEFAULT_ICON_URLt_t
getMainUrlt
getFullUrltMAIN_CAT_TABtARTISTS_CAT_TABt
cacheItemstcacheFilters(tself((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyRs$/		$$$'' '0	cCs.|jj|ƒr*|jj|ƒ|_ndS(N(tcmt
isValidUrlt
getBaseUrlR&(R/R((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyt
setMainUrl1scCs4|ikrt|jƒ}n|jj|||ƒS(N(R#R!R0tgetPage(R/tbaseUrlt	addParamst	post_data((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyR45sc
CsWtdƒ|j|dƒ\}}|s-dS|j|jdƒ|jjj|ddtƒd}|jdƒ}xÞ|D]Ö}|j	|jjj
|d	ƒd
ƒ}|dkr¶qyn|j|jjj
|dƒd
ƒ}|j|jjj|ddtƒdƒ}t
|ƒ}	|	jitd6|d6|d6|d6|d6ƒ|j|	ƒqyWdS(NsDancetrippinTV.listsChannelsRt<t>t
browsenetworks</ulis</li>s\shref=['"]([^'^"]+?)['"]its\ssrc=['"]([^'^"]+?)['"]s<as</atgood_for_favRRticon(R8R9R:(s</ulR9(s<aR9(s</aR9(RR4R3tmetaR0tphtgetDataBeetwenNodestFalsetsplitR*tgetSearchGroupstgetFullIconUrltcleanHtmlStrR#R%taddDir(
R/tcItemtnextCategorytststdatatitemRR=Rtparams((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyt
listsChannels9s 
"
%%+0c
Csdtdƒ|j|dƒ\}}|s-dS|j|jdƒ|jjj|ddtƒd}xúdd	d
gD]é}|jjj|dd|fdƒd}|j|jjj	|d
ƒdƒ}|dkrØqsn|d	kr|j
dƒrüd}qd}nd}|j|ƒ}t|ƒ}	|	j
itd6|d6|d6|d6ƒ|j|	ƒqsWdS(NsDancetrippinTV.listChannelRs<divR9t
navigations</divismenu-videossmenu-24smenu-djmixess<as</as\shref=['"]([^'^"]+?)['"]iR;s	/channelstplaylists24tplaylistRR<RR(s<divR9RN(s</divR9(s</aR9(RR4R3R>R0R?R@RAR*RCtendswithRER#R%RF(
R/RGRIRJRKttmpRRHRRL((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pytlistChannelKs(
"(%		)cCsŒtdƒ|j|dƒ\}}|s-dS|j|jdƒ|jjj|ddtƒd}|jjj|ddƒ}x|D]ÿ}|j	|jjj
|d
ƒdƒ}|dkrÂq…n|j|jjj|d
dtƒdj
ƒƒ}|jddƒ}|j|j|dƒƒ}|j|dƒ}	t|ƒ}
|
jitd6|d6|d6|d6|d6|	d6ƒ|j|
ƒq…WdS(NsDancetrippinTV.listPlaylists24Rs<divR9sgrid-contents<footeris</divs"singles\shref=['"]([^'^"]+?)['"]iR;surl(t)s</h3>iÿÿÿÿR<RRR=tdesc(s<divR9sgrid-content(s<footerR9(s</divR9(s<divR9s"single(RR4R3R>R0R?R@RAtrgetAllItemsBeetwenNodesR*RCRDtgetDataBeetwenMarkerststripRBRER#R%RRF(R/RGRHRIRJRKRR=RRURL((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pytlistPlaylists24cs$
"
%17cCs5tdƒ|j|dƒ\}}|s-dS|j|jdƒ|jddƒ}d}|jjj|ddtƒd	}|jjj	|ddƒ}x@|D]8}|jjj
|d
ƒd}|dkræ||kræg|_qn|j|jjj
|dƒdƒ}|dkrqn|jjj
|dƒdj
ƒ}|j|jjj
|dƒdƒ}	|j|jjj|ddƒd	ƒ}
t|ƒ}|jitd6|d6|d6|
d6|	d6ƒ|j|ƒqWt|jƒsô|dkr1t|ƒ}|jitdƒd6|d6ƒ|j|ƒndS(NsDancetrippinTV.listPlaylistRtlast_idR;s<ulR9RPs</ulis<litsingles</lis\sdata\-id=['"]([^'^"]+?)['"]is\sdata\-loc=['"]([^'^"]+?)['"]s\sdata\-type=['"]([^'^"]+?)['"]s!\sdata\-poster=['"]([^'^"]+?)['"]s</div>s<divR<tstream_typeRR=tMore(s<ulR9splaylist(s</ulR9(s<liR9R[(s</liR9(RR4R3R>tgetR0R?R@RAtgetAllItemsBeetwenNodesRCtcurrListR*tlowerRDREtrgetDataBeetwenMarkers2R#R%taddVideotlenR(taddMore(R/RGRIRJtpevIdtlastIdRKt	streamUrlt
streamTypeR=RRL((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pytlistPlaylistvs6
"
	%"%(0!cCs@tdƒg|_g|_|j|dƒ\}}|s?dS|j|jdƒt}t}t}tjdƒ}	d}
d}|
|kr•|}
n|j	j
j|d)d*tƒd
}|j	j
j|d+d,tƒ}x?|D]7}
|j
|
ƒ}
|
d
krqÜn|jj|
ƒqÜW|j	j
j|dd|
fd-tƒd
}|d
krW|}n|j	j
j|d.d/ƒ}xE|D]=}
|j|j	j
j|
dƒdƒ}|d
kr¶qyn|j	j
j|
ddtƒd
jƒ}t|ƒdkr)|dd0kr)|dd1kr)|j|d
d!ƒ}n|j|ƒ}g}|j	j
j|
d2d3tƒ}x<|D]4}|j
|ƒ}|d
krŠqcn|j|ƒqcWt|ƒr°t}n|	j|
ƒ}
|j
|j
|
dƒƒ}d|kröd}t}n]d|krd}t}nBd|ks5d|ks5d |krB|d!}ntd"|ƒqyt|ƒ}|jitd#6|d!6|d6|d$6|d%6|d&6d'j|ƒd(6ƒ|jj|ƒqyW|r|r|sâdt|jƒkrõ|j||ƒq<|j||ƒn4|r0t|jƒr0|j||ƒn|j|_dS(4NsDancetrippinTV.fillItemsRs<div[^>]+?genre[^>]+?>s	"content"s"content-grid"s<divR9t	genrelisttcontentis<as</aR;s	show-mores</divs"singles\shref=['"]([^'^"]+?)['"]isurl(RTit"t'iÿÿÿÿtfilters/play/taudios/videotvideos	/artists/s	/parties/s/venues/ttypes >>> unknown url tyle for url[%s]R<RR=tfilterss | RU(s<divR9Rk(s<divR9Rl(s<aR9(s</aR9(s<divR9s	show-more(s</divR9(s<divR9s"single(RmRn(RmRn(s<aR9sfilter(s</aR9(RR-R.R4R3R>RAtretcompileR0R?R@R_REtappendRVR*RCRWRXRdRDRRBR#R%tjoint	listTypestlistFiltersR`(R/RGt
nextCategory1t
nextCategory2RIRJt	hasVideost	hasAudiost
hasFilterst
reTitleObjtm1tm2RRRKRR=RsttRRrRL((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyt	fillItems•s‚
			"
+	
%(2
			$
GcCs‚tdƒitdƒd6itdƒd6dd6itdƒd6dd6g}t|ƒ}|ji|d	6ƒ|j||ƒdS(
NsDancetrippinTV.listTypestAllRtVideoRqtf_typetAudioRpR(RR(R#R%tlistsTab(R/RGRHttab((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyRxßs

DcCs|tdƒxk|jD]`}t|ƒ}|jitd6|d6|d6ƒd|jƒkrg||d<n|j|ƒqWdS(NsDancetrippinTV.listFiltersR<RRs alltf_filter(RR.R#R%RARaRF(R/RGRHRKRL((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyRyæs
"
cCsštdƒ|jddƒ}|jddƒ}xe|jD]Z}|dkr`|d|kr`q8n|dkr‚||dkr‚q8n|jj|ƒq8WdS(NsDancetrippinTV.listsItemsR†RŠRrRs(RR^tNoneR-R`Rv(R/RGtfTypetfFilterRK((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyt
listsItemsîs
cCsZtd|||fƒt|ƒ}|jdƒtj|ƒ|d<|j|ddƒdS(NsKDancetrippinTV.listSearchResult cItem[%s], searchPattern[%s] searchType[%s]s/search.cfm?q=Rtlist_filterst
list_items(RR#R*turllibt
quote_plusRƒ(R/RGt
searchPatternt
searchType((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pytlistSearchResultøs c
Cstd|ƒg}d|kr™d|dkrY|jidd6|dd6dd6ƒn<d	|dkr•|jt|dd
tdtdd
ƒƒn|S|jj|dƒ\}}|s¿|S|jjj	|ddƒd}|j
|jjj|ddtƒdƒjddƒ}d|j
j|ƒkr=|j
j|ƒS|jjj	|ddtƒd}|jjj|ddƒ}t|ƒrbxƒ|D]Î}|jjj|dƒdjƒ}|jjj|dƒd}	|jjj|dƒd}d|kr'|ji|	d6|j
|ƒd6dd6ƒqd	|kr|jt|d
tdtdd
ƒƒqqWnª|j
|jjj|ddtƒdƒ}|jj|ƒ\}}|s¯|Stjdtjƒj|ƒ}
x<|
D]4}|jt|j
|ƒd
tdtdd
ƒƒqÔW|S(Ns$DancetrippinTV.getLinksForVideo [%s]R\s	video/mp4tdirecttnameRitneed_resolvesapplication/x-mpegurltcheckExttcheckContenttsortWithMaxBitrateiÿɚ;tvideoplayers</div>is#<iframe[^>]+?src=['"]([^"^']+?)['"]s&amp;t&s<videos</video>s<sourceR9stype=['"]([^'^"]+?)['"]slabel=['"]([^'^"]+?)['"]ssrc=['"]([^'^"]+?)['"]s5['"]((?:https?:)?//[^'^"]+?\.m3u8(?:\?[^'^"]+?)?)['"](RRvtextendRRARR0R4R?RWR*RCtreplacetuptcheckHostSupporttgetVideoLinkExttgetAllItemsBeetwenMarkersRdRaRtRut
IGNORECASEtfindall(R/RGturlTabRIRJRRRRKRrR—thlsUrls((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pytgetLinksForVideoþsD),7"
"./+
2cCstd|ƒg}|S(Ns!DancetrippinTV.getVideoLinks [%s](R(R/tvideoUrlR¦((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyt
getVideoLinks'siR;c	CsUtdƒtj|||||ƒ|jjddƒ}|jjddƒ}|jjddƒ}td||fƒg|_|dkr¨|j|jidd6ƒn–|dkrÍ|j|j	|jƒnq|dkrï|j
|jd	ƒnO|d	kr|j|jƒn0|d
kr3|j|jddƒn|d
krU|j
|jdƒné|d
krw|j|jdƒnÇ|dkr–|j|jƒn¨|dkrµ|j|jƒn‰|dkrt|jƒ}|jitd6dd6ƒ|j|||ƒn=|dkr7|jidd6dd6dtdƒƒntƒtj|||ƒdS(NshandleService startR—R;RtmodesKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] RRtchannel_menuRRRRORPRtsearch_next_pageRRRRUsType: (ssearchR­(RRt
handleServicetcurrItemR^R`R‹RˆR+R,RMRSRƒRyRYRjRŽR#R%RAR•tlistsHistoryR(RtendHandleService(	R/tindextrefreshR“R”R—RR«RG((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyR®-sB
	*N(t__name__t
__module__RR3R‹R4RMRSRYRjRƒRxRyRŽR•R¨RªR®(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyRs							J			
		)	tIPTVHostcBseZd„ZRS(cCstj|tƒtgƒdS(N(RRRR(R/((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyRYs(R´RµR(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyR¶Ws(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRR(t.Plugins.Extensions.IPTVPlayer.components.ihostRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRt2Plugins.Extensions.IPTVPlayer.libs.urlparserhelperRRtR‘RRR¶(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdancetrippin.pyt<module>s	ÿB