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
ddlZyddlZWne
k
r‡ddlZnXd„Zdefd„ƒYZd	efd
„ƒYZdS(iÿÿÿÿ(tTranslateTXT(t	CHostBasetCBaseHostClass(tprintDBGtprintExc(tstrwithmetaNcCsdS(Nshttp://dardarkom.com/((((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytgettytulstDardarkomComcBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
ddd„ZRS(
cCsêtj|idd6dd6ƒitd6td6td6td6|jd	6|_id
d6dd
6|_t|jƒ|_|jjidd6ƒd|_	d|_
idd6tdƒd6td6idd6tdƒd6g|_i|_
dS(Ns  DardarkomCom.tvthistorysdardarkomcom.cookietcookiet
with_metadatat
use_cookietload_cookietsave_cookiet
cookiefilesMozilla/5.0s
User-Agents	text/htmltAccepttXMLHttpRequestsX-Requested-Withshttp://www.dardarkom.com/s]https://lh5.ggpht.com/xTFuZwF3HX9yPcDhbyCNnjDtZZ1l9qEwUVwoWsPW9Pxry9JsNLSPvWpbvL9waHbHMg=h900tsearchtcategorytSearchttitletsearch_itemtsearch_historysSearch history(Rt__init__tTruetCOOKIE_FILEt
defaultParamstHEADERtdicttAJAX_HEADERtupdatetMAIN_URLtDEFAULT_ICON_URLt_tMAIN_CAT_TABt
cacheLinks(tself((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyRs/		 cCsâtdƒd}|jj|jƒiidd6dd6d6ƒ\}}|rÂ|jjj|dd ƒ}t|ƒdkrÂ|d}|j|jjj|d!d"t	ƒdƒ}|d|7}qÂn|jj|jƒƒ\}}|sêdS|jjj|d#d$ƒd}|j|jjj|d%d&t	ƒdƒ}|d|7}|jjj|d'd(ƒ}|j
d|ƒ|j
d|ƒx^|D]V}g}	|j|jjj|ddƒdƒ}|jjj|ddƒ}xº|D]²}
|j
|jjj|
dƒdƒ}|dkrqÚnd|kr-g}	Pn|jdƒrBqÚn|j|
ƒ}t|ƒ}
|
ji|d6|d6|d6ƒ|	j|
ƒqÚWt|	ƒr„t|ƒ}
|
ji|d6|d6|	d6ƒ|j|
ƒq„q„WdS()NsDardarkomCom.listFooterMenutsMozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16s
User-Agents	text/htmlRtheaders<divt>scollapsible-headers</ulis</is</divs	<p>%s</p>s<litsubmenusft-colis<ps</p>s<as</a>shref=['"]([^'^"]+?)['"]showtowatch.t#RRturlt	sub_items(s<divR'scollapsible-header(s</ulR'(s</iR'(s</divR'(s<liR'R((s</divR'(s<liR'(s<divR'(s<divR'sft-col(s</divR'(RtcmtgetPaget
getMainUrltphtgetAllItemsBeetwenNodestlentcleanHtmlStrtgetDataBeetwenNodestFalsetinserttgetDataBeetwenMarkerstgetAllItemsBeetwenMarkerst
getFullUrltgetSearchGroupstendswithRRtappendtaddDir(R$tcItemt
nextCategory1t
nextCategory2t
mobileSectiontststdatatsTitletsectionttabItemstitemR*Rtparams((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytlistMainMenu(sN
6
++
(
%""cCstdƒ|d|_dS(NsDardarkomCom.listSubItemsR+(RtcurrList(R$R=((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytlistSubItemsVs
cCsÇtdƒ|jddƒ}|jddƒ}|d}d}x»|dkrû|d7}|jj|itd6d)d*gd6|ƒ\}}|s“dS|r÷d	|jjdd
ƒkr÷|jd|d|dƒ}	|	|kr÷|	}|d7}qAq÷nPqAW|jjj	|d+d,t
ƒd}
|jjj|
dj|dƒƒd}
d|
kr¥d|kr|dkr|j
dƒdd|d}
q¥|dkr¥|}
q¥n|jjj	|d-d.ƒd}|dkrò|jjj	|d/d0ƒd}n|jjj|ddƒ}xP|D]H}|j|jjj|dƒdƒ}|jj|ƒsWqn|j|jjj|dƒdƒ}
d}g}|jjj|d1d2ƒ}x]|D]U}|j|ƒ}|dkrÑqªn|dkròd!|krò|}qª|j|ƒqªWt|ƒ}|jitd"6|d#6|d$6|d6|
d%6d&j|ƒd'6ƒ|j|ƒqW|jj|
ƒrÃt|ƒ}|jitd(ƒd$6|dd6|j|
ƒd6ƒ|j|ƒndS(3NsDardarkomCom.listItemstpageit	post_dataR*iiR
i”iôtignore_http_code_rangeststatus_codeiÈs	/page/%s/s<divR'spagi-navs</divs-<a[^>]+?href=['"]([^"^']+?)['"][^>]*?>{0}</a>R)t&s
&search_starts&search_start=%ss<asshort-posters
bottom-navR%s<h1s</a>shref=['"]([^"^']+?)['"]s6src=['"]([^"^']+?(:?\.jpe?g|\.png)(:?\?[^'^"]*?)?)['"]sshort-s-titletgood_for_favRRticons[/br]tdescs	Next page(i”i”(iôiô(s<divR'spagi-nav(s</divR'(s<aR'sshort-poster(s<divR's
bottom-nav(s<aR'sshort-poster(s<h1R'(s<divR'sshort-(s</divR'(RtgettNoneR,R-RtmetatreplaceR/R3R4R9tformattsplitR7R8t
isValidUrlR0R2R;RRtjoinR<R!(R$R=tnextCategoryRKRLR*tattemptRARBtnewUrltnextPagettmpRFRQRRRtitttRG((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyt	listItemsZsd


2!
	")""
%%
	@5cCsÀtdƒ|jddƒ}|jddƒ}|d}|ji|d6d|ddd6ƒ|jj|d|ƒ\}}|s‡dS|jjj|d d!tƒd}|jjj	|d
j
|dƒƒd}|jjj|d"d#ƒ}x|D]w}	|j|jjj	|	dƒdƒ}|jj
|ƒs7qôn|j|jjj	|	dƒdƒ}
|j|jjj|	d$d%ƒdƒ}g}|j|jjj|	d&d'ƒdƒ}
|
dkrÎ|j|
ƒn|j|jjj|	d(d)ƒdƒ}
|
dkr|j|
ƒnt|ƒ}|jitd6|d6|d6|d6|
d6dj|ƒd6ƒ|j|ƒqôWd|kr¼t|ƒ}|jitdƒd6|dd6ƒ|j|ƒndS(*NsDardarkomCom.listSearchItemsRKiRLR*tsearch_startitresult_froms<divR'spagi-navs</divs-<a[^>]+?href=['"]([^"^']+?)['"][^>]*?>{0}</a>is<as	sres-wraps</ashref=['"]([^"^']+?)['"]s6src=['"]([^"^']+?(:?\.jpe?g|\.png)(:?\?[^'^"]*?)?)['"]s<hs</hs	sres-dateR%s	sres-descRPRRRQs[/br]RRs	Next page(s<divR'spagi-nav(s</divR'(s<aR's	sres-wrap(s</aR'(s<hR'(s</hR'(s<divR's	sres-date(s</divR'(s<divR's	sres-desc(s</divR'(RRSRTRR,R-R/R3R4R9RWR0R8RYR2R;RRRZR<R!(R$R=R[RKRLR*RARBR^RFRQRRRR_RG((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytlistSearchItemss>

'")
%%(((@%cCs•tdƒ|jj|dƒ\}}|s0dSt|ƒ}|d|d<g}|jjj|ddƒ}x«|D]£}|j|jjj|dƒdƒ}d|krr||krr|j|ƒt|ƒ}|j	it
d	6td
ƒ|dd6|d6td6ƒ|j
|ƒqrqrWd
|krAt|ƒ}|j
|ƒnPd|krÍ|jjj|ddt
ƒd}|j|jjj|dƒdƒ}	|	dkrÍ|jj|	ƒ\}}|rÊ|}qÊqÍn|jjj|ddt
ƒd}|jjj|ddƒ}x„|D]|}
|j|
ƒ}|j|jjj|
dƒdƒ}t|ƒ}|j	it
d	6|d6td6|d6ƒ|j
|ƒqWdS(NsDardarkomCom.exploreItemR*tprev_urls<iframes	</iframe>ssrc=['"]([^'^"]+?)['"]ityoutubeRPsTrailer - %sRttrailertfeaturelisttinsidelinkss<divR'taboveposbuts</divis<a[^>]+?href=['"]([^"^']+?)['"]R%s</uls<lis</li>s(<a[^>]+?href=['"](https?://[^"^']+?)['"]tepisode(s<divR'Rk(s</divR'(s<divR'Rj(s</ulR'(RR,R-RR/R7R8R9R;RR4R!RtaddVideoR3R2(R$R=RARBttrailersR_tserverR*RGtsUrlRFR((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytexploreItem´sB

%
7"%"
%)cCsŽtd|ƒg}|jdtƒr:|jj|dƒS|d}|jj|gƒ}t|ƒri|S|jj|dƒ\}}|sgS|jj	j
|ddtƒd}|jj	j|d	d
ƒ}g}x$|D]}|j|j
|ƒƒqÙWt|ƒg}	|jdtƒr@|jj	j
|d d!tƒd}n"|jj	j
|d"d#tƒd}tjdƒj|ƒ}t|ƒxçtt|ƒƒD]Ó}
|
t|ƒkrÅ|j
||
ƒ}nd}d}|jj	j||
ddƒ}x|D]•}
td|
ƒ|j|jj	j|
dƒdƒ}|dks÷||	krNq÷n|j
|
ƒ}|ji|d6|d6dd6ƒ|	j|ƒq÷W|jj	j||
ddƒ}x¸|D]°}
td|
ƒ|j|jj	j|
dƒdƒ}|dks¶||	ks¶d|krq¶nd|kr1d}q¶n|}|ji|d6|d6dd6ƒ|	j|ƒq¶Wq—Wt|ƒrŠ||j|<n|S($Ns"DardarkomCom.getLinksForVideo [%s]RhR*s<divR'stabs-sels</divis<spans</span>Rlsfplay tabs-bRis<div[^>]+?fplay tabs\-b[^>]+?>tERRORR%s<as</a>s3>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SERVER: s'href=['"]([^'^"]+?\.video/[^'^"]+?)['"]itnametneed_resolves<iframes	</iframe>ssrc=['"]([^'^"]+?)['"]s/templates/Rgs	[TRAILER](s<divR'stabs-sel(s</divR'(s<divR'sfplay tabs-b(s<divR'stabs-sel(s<divR'sfplay tabs-b(s<divR'sfeaturelist(RRSR4tuptgetVideoLinkExtR#R1R,R-R/R3R7R;R2tretcompileRXtrangeR8R9(R$R=turlTabtcacheKeyRARBR_t	tabsNamesRFt
uniqueUrlstidxttabNameR*RoRs((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytgetLinksForVideoÛsh
"

%"
	
%"
%$"cCs×td|ƒt|jjƒƒrÆx |jD]’}x‰tt|j|ƒƒD]n}||j||dkrM|j||djdƒs·d|j||d|j||d<nPqMqMWq-Wnd}||krò||j|ƒd}nd}t|jƒ}t|j	ƒ|d	<|j
ƒ|d	d
<d}xod|jj|ƒkr¥|d
kr¥|d7}|j
j||ƒ\}}	|sŠgSd}
|j
jj|	ddttƒ}t|ƒxE|D]=}|j
jj|ddtƒd}
d|
krÂd}
qÂqÂW|
dkr4|j
jj|	ddtƒd}
n|
dkre|j
jj|	ddtƒd}
nt|
ƒ|j|
ƒ}
||d	d
<t|
i|d
6ƒ}q7Wg}
|j
j|ƒrÓ|jj|ƒ}
n|
S(NsDardarkomCom.getVideoLinks [%s]R*Rst*s
*** %s ***s?s=httpiR%R&tRefereriiis<iframe s	</iframe>s!location\.href=['"]([^"^']+?)['"]t
javascripts#<iframe[^>]+?src=['"]([^"^']+?)['"]s,window\.open\(\s*['"](https?://[^"^']+?)['"](RR1R#tkeysRyt
startswithtfindRRRR.RutcheckHostSupportR,R-R/R7R4RR9R8RRYRv(R$tvideoUrltkeyR~tm1treferert	urlParamsttriesRARBR*t	urlTmpTabturlTmpRz((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyt
getVideoLinks#sP +'
!

"
%%
cCs td|||fƒt|ƒ}|jdƒ|d<idd6dd6|d6|d<|jd	d
ƒd
kr‚|d	|dd<nd|d
<|j|dƒdS(NsIDardarkomCom.listSearchResult cItem[%s], searchPattern[%s] searchType[%s]s/index.php?do=searchR*Rtdot	subactiontstoryRLRKiRctlist_search_itemsRtexplore_item(RRR8RSRe(R$R=t
searchPatternt
searchType((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytlistSearchResultOs
cCstd|ƒg}g}d|kr3|d}n
|d}|jj|ƒ\}}|s_dS|jjj|ddtƒd}|jjj|d d!tƒd}|j|jjj|dƒdƒ}|j	|jjj|d"d#tƒdƒ}|j	|jjj|d$d%tƒdƒ}	|jjj
|d&d'tƒ}
xì|
D]ä}|jjj|ddƒ}xÀ|D]¸}d|kr¢|jjj|dƒd|g}n*|jddƒ}t
|ƒdkrÌqkn|j	|dƒ}
|j	|dƒ}|
dksk|dkrqkn|j|
|fƒqkWqCWi|j	|ƒd6|j	|	ƒd6idd6|j|ƒd6gd6i|d6d6gS((NsDardarkomCom.getVideoLinks [%s]RfR*s<articles
</article>is<divR'tfposters</divs <img[^>]+?src=['"]([^'^"]+?)['"]is<hss-titles</hRRs<uls	flist-cols</uls<lis</li>s
data-labelsdata\-label=['"]([^'^"]+?)['"]s</span>iR%Rttexttimagestcustom_items_listt
other_info(s<divR'R™(s</divR'(s<hR'ss-title(s</hR'(s<divR'sdesc(s</divR'(s<ulR's	flist-col(s</ulR'(RR,R-R/R6R4R3R8R9R2R0R7RXR1R;(R$R=tretTabt	itemsListR*RARBRQRRRttmpTabR_RFR‰tval((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytgetArticleContentYs:

""%++

%iR%c
Cstdƒtj|||||ƒ|jjddƒ}|jjddƒ}|jjddƒ}td||fƒg|_|dkrÈidd6dd6}|j|dd	ƒ|j|j	|ƒn-|dkrç|j
|jƒn|d
kr	|j|jd	ƒnì|d	kr+|j|jdƒnÊ|dkrJ|j
|jƒn«|dkr–t|jƒ}	|	jitd6dd6ƒ|j|	||ƒn_|dkr¸|j|jdƒn=|dkrî|jidd6dd6dtdƒƒntƒtj|||ƒdS(NshandleService startRsR%RtmodesKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] ttypeR+t
list_itemst
categoriesR•Rtsearch_next_pageRR”RRRRsType: (ssearchR§(RRt
handleServicetcurrItemRSRIRTRHtlistsTabR"RJtlistCategoriesRbRqRRR4R˜RetlistsHistoryR!RtendHandleService(
R$tindextrefreshR–R—RsRR£tbaseItemR=((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyR¨zs:
	*(
t__name__t
__module__RRHRJRbReRqR€RR˜R¢R¨(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyRs		.		6	$	'	H	,	
	!tIPTVHostcBseZd„Zd„ZRS(cCs tj|tƒtdgƒdS(NtfavouriteTypes(RRRR(R$((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyR£scCs0d|ks$|jddƒdkr(tStSdS(NRfRR%R•(RSRR4(R$R=((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pytwithArticleContent¦s$(R±R²RRµ(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyR³¡s	(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRR!t.Plugins.Extensions.IPTVPlayer.components.ihostRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtypesRRwtjsont	Exceptiont
simplejsonRRR³(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostdardarkomcom.pyt<module>s
	ÿŒ