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èddlmZmZddlmZmZmZmZddlm	Z	ddl
mZmZddl
Z
ddlZyddlZWnek
r¥ddlZnXd„Zd„Zdefd	„ƒYZd
efd„ƒYZdS(iÿÿÿÿ(t	CHostBasetCBaseHostClass(tprintDBGtCSearchHistoryHelpertprintExctbyteify(tgetDirectM3U8Playlist(tcommontCParsingHelperNcCs
g}|S(N((t
optionList((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyt
GetConfigListscCsdS(Nshttp://ninateka.pl/((((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pytgettytulstNinatekacBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
ddd„ZRS(
cCs÷tj|idd6dd6ƒd|_d|_t|_tƒ|_tdƒ|_	d|_
|jdƒ|_|jd	|_
id
d6dd
6|jd6idd6dd
6|j
d6idd6tdƒd
6td6idd6tdƒd
6g|_dS(Ntninatekathistorysninateka.cookietcookies3http://ninateka.pl/Content/images/ninateka_logo.pngtshttp://ninateka.pl/s3filmy?MediaType=video&Paid=False&CategoryCodenames=s
&SearchQuery=tlist_alltcategoryt	Wszystkiettitleturlt	list_catst	KategorietsearchtSearchtsearch_itemtsearch_historysSearch history(Rt__init__tDEFAULT_ICON_URLtmenuHTMLtFalsetrefreshRtcmRRtMAIN_URLt
getFullUrlt
VIDEOS_URLt
SEARCH_URLt_tTruetMAIN_CAT_TAB(tself((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyR#s				cCs~tdƒt|jks(d|jkrwd|_|jj|jƒ\}}|rwtj|ddt	ƒd|_qwn|jS(NsgetMenuHTML startRs#<div class="nav-collapse collapse">s<!--/.nav-collapse -->i(
RR'R RR!tgetPageR"RtgetDataBeetwenMarkersR(R)tststdata((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pytgetMenuHTML:s
	%cCs’|jƒ}tjdƒj|ƒ}t|ƒdkrŽxUtt|ƒƒD]>}idd6||dd6||dd6}|j|ƒqIWndS(NsG<li data-codename="([^"]+?)"><a href="/filmy/([^"^,^/]+?)">([^<]+?)</a>is
main-categorytnametpageiR(R.tretcompiletfindalltlentrangetaddDir(R)Rtmatchtitparams((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pytgetMainCategoryCs+cCs¯|jƒ}d|}tj|ƒj|ƒ}t|ƒdkr«xhtt|ƒƒD]Q}idd6|j||djddƒd6||d	d
6}|j|ƒqSWndS(NsO<li data-codename="([^"]+?)"><a href="/filmy/(%s,[^"^,^/]+?)">([^<]+?)</a></li>issub-categoryR/it,s%2CR0iR(	R.R1R2R3R4R5R$treplaceR6(R)tcatRtpatternR7R8R9((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pytgetSubCategoryLs
>c	s¢td|ƒg}|d}ˆjj|ƒ\}}|sJtdƒ|Sy9ˆjjj|ddtƒdjƒ‰tˆƒ‰‡‡fd†}ˆjjj|dd	tƒd}t|ƒtt	j
|d
ƒƒ}x|dD]‘}|jdd
ƒjƒ}d|krB||dƒ}|j
idd6|d6dd6ƒnd|krã||dƒ}|jt|ƒƒqãqãWt|ƒWntk
rtƒnX|S(NsgetVideoUrl url[%s]RsgetVideoUrl excepts(playerOptionsWithMainSource,t)ics^d}ˆjj|ƒsFx1|D] }|tˆt|ƒAƒ7}qWn|}td|ƒ|S(NRs>>>> (R!t
isValidUrltchrtordR(titemRtc(targR)(sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyt_repFunbs
!splayerOptionsWithMainSource =s};t}tsourcesttypeRs/mp4tsrctmp4R/itneed_resolves
/x-mpegurl(RR!R*tphR+RtstriptintRtjsontloadstgettlowertappendtextendRt	ExceptionR(	R)tcItemtlinksTabRR,R-RGRDRJ((RFR)sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pytgetLinksForVideoVs4

(	"
%
cCsµtd|ƒ|jj|ƒ\}}|s:tdƒdStj|ddtƒd}tj|ddtƒdjdƒ}|d	=xˆ|D]€}td
ƒd}d}d}d}	d}
d}d|kr‰tjd
|ƒ}|rÿ|j	dƒj
ddƒ}n|j|jjj|ddƒdƒ}|j|jjj|ddƒdƒ}tjd|ƒ}|ry|j	dƒ}	ntjd|ƒ}|r	|j
|j	dƒ}|j	dƒ}
itd6|d6|
d6|d6dj||gƒd|	d6}|j|ƒq	q‰q‰Wd}
tjd|ƒ}|r=|j	dƒ}
n*tjd|ƒ}|rg|j	dƒ}
nd|
kr±id d!6|j
|
j
ddƒd"6d#d6}|j|ƒndS($NsgetVideosList url[%s]sgetVideosList excepts
class="pager"s</div>is0<!-- ************ end user menu ************ -->s</ul>s<li>it
videoItemDataRsclass="playIcon"ssrc="(http://[^"]+?)"s&amp;t&s<span class="duration">s</span>s<a class="gatunek" s</a>sclass="text"[^>]*?>([^<]+?)<s3<a href="([^"]+?)" class="title"[^>]*?>([^<]+?)</a>itgood_for_favRRticons | s[/br]tdescs href="([^"]+?)" class="nextPage"s href="([^"]+?)" class="lastPage"ssub-categoryR/R0sNastępna strona(RR!R*RR+RtsplitR1RtgroupR<tcleanHtmlStrRNR"R'tjointaddVideoR6(R)RR,R-tnextPageDataR[R^tdurationtgatunekR_RR7R9tnextPageUrl((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyt
getVideosList{sR
%

((@.cCstdƒtj|ƒS(NtgetFavouriteData(RRQtdumps(R)RX((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyRj³s
cCsWtdƒg}y(ttj|ƒƒ}|j|ƒ}Wntk
rRtƒnX|S(NtgetLinksForFavourite(RRRQRRRZRWR(R)tfav_datatlinksRX((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyRl·s

cCsUtdƒyttj|ƒƒ}Wntk
rCi}tƒnX|j|ƒtS(NtsetInitListFromFavouriteItem(RRRQRRRWRR6R'(R)RmR9((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyRoÀs


cCs8td|||fƒ|j|jtj|ƒƒdS(Ns<listSearchResult cItem[%s], searchPattern[%s] searchType[%s](RRiR%turllibt
quote_plus(R)RXt
searchPatternt
searchType((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pytlistSearchResultÊsiRc
CsÁtdƒtj|||||ƒ|jjddƒ}|jjddƒ}|jjddƒ}|jjddƒ}td||fƒg|_|dkr½|j|jidd6ƒn|dkrà|j	|jd	ƒnÝ|d
krù|j
ƒnÄ|dkr|j|ƒn¨|dkr1|j	|ƒnŒ|dkr}t|jƒ}	|	j
itd6dd6ƒ|j|	||ƒn@|dkr³|jidd6d
d6dtdƒƒn
tdƒdS(NshandleService startR/RRtmodeR0sKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] RRRs
main-categoryssub-categoryRtsearch_next_pageRRRR_sType: shandleService WRONG WAY(ssearchRv(RRt
handleServicetcurrItemRStcurrListtNonetlistsTabR(RiR:R?tdicttupdateRRttlistsHistoryR&(
R)tindexR RrRsR/RRuR0RX((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyRwÎs2
	
*(
t__name__t
__module__RR.R:R?RZRiRjRlRoRtRw(((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyR"s						
	%	8				
	tIPTVHostcBseZd„ZRS(cCstj|tƒtgƒdS(N(RRRR'(R)((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyR÷s(R€RR(((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyR‚õs(t.Plugins.Extensions.IPTVPlayer.components.ihostRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRRt2Plugins.Extensions.IPTVPlayer.libs.urlparserhelperRt*Plugins.Extensions.IPTVPlayer.libs.pCommonRRR1RpRQRWt
simplejsonR
RRR‚(((sK/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostninateka.pyt<module>s"
		Ó