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‡ddlmZddlmZmZmZddlmZm	Z	ddl
Z
d„Zdefd„ƒYZdefd	„ƒYZ
dS(
iÿÿÿÿ(tTranslateTXT(t	CHostBasetCBaseHostClasstCDisplayListItem(tprintDBGtprintExcNcCsdS(Nshttp://sovdub.ru/((((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pytgettytulstSovdubcBsŒeZd„Zidd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zdd
d
d„ZRS(cCsÌtj|idd6dd6ƒd|_|jdƒ|_idd6td	ƒd
6|jƒd6idd6td
ƒd
6|jƒd6idd6tdƒd
6td6idd6tdƒd
6g|_d|_	dS(NRthistorys
Sovdub.cookietcookieshttp://sovdub.ru/s&/templates/simplefilms/images/logo.pngtgenrestcategorytGenresttitleturlt	countriest	CountriestsearchtSearchtsearch_itemtsearch_historysSearch historyt(
Rt__init__tMAIN_URLtgetFullIconUrltDEFAULT_ICON_URLt_t
getMainUrltTruetMAIN_CAT_TABtencoding(tself((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyRs	$$ cCs_|jj|||ƒ\}}|rU|jdkrU|jjj|dƒd|_n||fS(NRscharset=([^"]+?)"i(tcmtgetPageRtphtgetSearchGroups(RRtparamst	post_datatststdata((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyR!&s"cCs"|jddƒ}tj||ƒS(Ns&t&(treplaceRt
getFullUrl(RR((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyR*+scCs¿tdƒ|j|dƒ\}}|s-dS|jjj|ddtƒd}tjdƒj|ƒ}xQ|D]I}t	|ƒ}|j
i|d6|dd6|d	d6ƒ|j|ƒqnWdS(
NsSovdub.listGenresRs<div class="right-menu">s</div>ishref="([^"]+?)">([^<]+?)</a>RR
i(RR!R R"tgetDataBeetwenMarkerstFalsetretcompiletfindalltdicttupdatetaddDir(RtcItemRR&R'tcatDatatitemR$((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyt
listGenres/s
"
*cCs¿tdƒ|j|dƒ\}}|s-dS|jjj|ddtƒd}tjdƒj|ƒ}xQ|D]I}t	|ƒ}|j
i|d6|dd6|d	d6ƒ|j|ƒqnWdS(
NsSovdub.listCountriesRsВыбор страныs</div>ishref="([^"]+?)">([^<]+?)</a>RR
i(RR!R R"R+R,R-R.R/R0R1R2(RR3RR&R'tcanDataR5R$((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyt
listCountries;s
"
*cCs2tdƒ|d}d|krF|jdƒ}|d}|d}nd}|jddƒ}|dkr{|d|7}n|dkr˜|d|7}n|jd	dƒ}|j|i|ƒ\}}|sÏdSd
|d|krìt}	nt}	d}
d|kr
d}
n|jjj	|d
|
tƒd}t
jdƒj|ƒ}x‘|D]‰}|d}|j
|dƒ}
|j|dƒ}t|
ƒt|ƒ}|ji|d6|d6|
d6|d6|d6ƒ|j|ƒqNW|	r.t|ƒ}|jitdƒd6|jddƒdd6ƒ|j|ƒndS(NsSovdub.listItemsRt?iiRtpagespage/%d/R%s	/page/%d/s</div></div>s<div class="navigation">s<div id='dle-content'>s;src="(.*jpg)".*alt="(.*)" />*\s.*<a href="(.*?)"></a></div>iRR
ticontdescs	Next page(RtsplittgettNoneR!RR,R R"R+R-R.R/RR*R0R1R2R(RR3RRtpostR:R%R&R'tnextPagetm1R5R
R;R$((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyt	listItemsGsH



		"


01c	Cs~tdƒ|j|dƒ\}}|s-dS|jjj|ddtƒd}|j|ƒjddƒ}d}t}|jjj|dddtƒ}x~|D]v}|jjj	|ddt
ƒd
}|jddƒ}|j|ƒ}d|kržd|jj
|ƒkržt
}qžqžW|jj|ƒrzt|ƒ}||d<|ji|d6ƒ|rj|j|ƒqz|j|ƒndS(NsSovdub.listContentRs<div class="full-news-content">s
</a></div>is  Rs<iframet>s</iframet
caseSensitives#<iframe[^>]+?src=["']([^"^']+?)['"]isamp;smoney.R<(s<iframeRD(s</iframeRD(RR!R R"R+R,tcleanHtmlStrR)tgetAllItemsBeetwenNodesR#RR*tuptcheckHostSupportt
isValidUrlR0R1taddVideot
addArticle(	RR3R&R'R<RthasLinksR5R$((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pytlistContentrs,
"!
"$

cCs?|jdkr7|j|jƒƒ\}}|s7dSny"|jdƒj|jdƒ}Wntk
rrd}nXidd6dd6|d6dd	6dd
6}|j|jƒd|ƒ\}}|sÇdSd}|jjj||d
t	ƒd}|j
|ƒ}x:|D]2}|j|jjj|ddƒdƒ}	|	dkrg|j|jjj|dƒdƒ}	n|j
|jjj|dƒdƒ}
|j|jjj|dƒdƒ}|j|jjj|ddƒdƒ}|jj|ƒrt|ƒ}
|
jidd6|	d6|
d6|d6|d6ƒ|j|
ƒqqWdS(NRsutf-8tignoreRtdot	subactiontstoryitxtyR%s<div class="main-news">s<div style="clear: both;">is<h2s</h2>salt=['"]([^'^"]+?)['"]ssrc=['"]([^'^"]+?)['"]shref=['"]([^'^"]+?)['"]s</div>tlist_contentRR
R;R<R(RR!Rtdecodetencodet	ExceptionR R"R+R,R=RFR#RR*RJR0R1R2(RR3t
searchPatternt
searchTypeR&R'R%RBR5R
R;RR<R$((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pytlistSearchResultŒs4"

)!"
((%%(0cCsêtd|ƒg}|j|dƒ\}}|s7gS|jjj|dddtƒ}x‹|D]ƒ}|jjj|ddtƒd	}|jd
dƒ}|j	|ƒ}d|kr_|j
i|j|ƒd
6|d6dd6ƒq_q_W|S(NsSovdub.getLinksForVideo [%s]Rs<iframeRDs</iframeREs#<iframe[^>]+?src=["']([^"^']+?)['"]iisamp;Rsmoney.tnametneed_resolve(s<iframeRD(s</iframeRD(RR!R R"RGR,R#RR)R*tappendRF(RR3turlTabR&R'R5R((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pytgetLinksForVideo©s!
"2cCs*td|ƒg}|jj|ƒ}|S(NsSovdub.getVideoLinks [%s](RRHtgetVideoLinkExt(RtvideoUrlR_((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyt
getVideoLinks¹scCs|dS(NR((RR3((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pytgetFavouriteData¿scCs|ji|d6ƒS(NR(R`(Rtfav_data((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pytgetLinksForFavouriteÂsiRcCs¸tdƒtj|||||ƒ|jjddƒ}|jjddƒ}td||fƒg|_|dkr“|j|jidd6ƒn|dkrµ|j	|jdƒnì|dkr×|j
|jdƒnÊ|dkrù|j|jd	ƒn¨|d	kr|j|jƒn‰|dkrdt
|jƒ}|jitd6dd6ƒ|j|||ƒn=|d
krš|jidd6d
d6dtdƒƒntƒtj|||ƒdS(NshandleService startR\RRsKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] R
t
list_itemsRRURtsearch_next_pageRRRR<sType: (ssearchRh(RRt
handleServicetcurrItemR>tcurrListR?tlistsTabRR6R8RCRNR0R1R,R[tlistsHistoryRRtendHandleService(RtindextrefreshRYRZR\RR3((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyRiÅs0
	*N(t__name__t
__module__RR?R!R*R6R8RCRNR[R`RcRdRfRi(((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyRs	
				+						tIPTVHostcBseZd„ZRS(cCs)tj|tƒttjtjgƒdS(N(RRRRRt
TYPE_VIDEOt
TYPE_AUDIO(R((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyRês(RqRrR(((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyRsès(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRRt.Plugins.Extensions.IPTVPlayer.components.ihostRRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRR-RRRs(((sI/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsovdub.pyt<module>s	Ð