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@sLddlmZmZddlmZmZddlmZm	Z	m
Z
mZddlZddl
Z
ddlZyddlZWnek
r¡ddlZnXddlmZmZmZddlmZeddd	eƒejj_eddd	eƒejj_d
„Zd„Zdefd
„ƒYZdefd„ƒYZ dS(iÿÿÿÿ(tTranslateTXTt
GetIPTVNotify(t	CHostBasetCBaseHostClass(tprintDBGtprintExctbyteifytrmN(tconfigt
ConfigTexttgetConfigListEntry(t
MessageBoxtdefaulttt
fixed_sizecCs\g}|jttdƒdtjjjƒƒ|jttdƒdtjjjƒƒ|S(Ntlogint:tpassword(tappendR
t_Rtpluginst
iptvplayertserijeonline_logintserijeonline_password(t
optionList((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyt
GetConfigList"s))cCsdS(Nshttp://www.serije.online/((((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytgettytul(stSerijeOnlinecBsƒeZd„Zidd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
dddd
„ZRS(cCsÏtj|idd6dd6ƒd|_d|_d|_i|jd6d	d
6dd6d
d6|jƒd6|jƒd6|_t|jƒ|_|jj	idd6d
d6dd6dd6ƒidd6t
dƒd6|jdƒd6idd6t
dƒd6|jdƒd6idd6t
dƒd6|jd ƒd6id!d6t
d"ƒd6td#6id$d6t
d%ƒd6g|_
i|_i|_i|jd&6td'6td(6td)6|jd*6|_d|_d+|_d+|_dS(,Ns
serije.onlinethistorysserije.online.cookietcookies0http://www.serije.online/uploads/custom-logo.jpgsHMozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0shttp://www.serije.online/s
User-Agentt1tDNTs	text/htmltAccepts
gzip, deflatesAccept-EncodingtReferertOrigintXMLHttpRequestsX-Requested-Withs0application/x-www-form-urlencoded; charset=UTF-8sContent-Types.application/json, text/javascript, */*; q=0.01t
list_itemstcategorys
Top Videosttitles/topvideos.htmlturls
Newest Videoss/newvideos.htmltlist_categoriest
Categoriess/index.htmltsearchtSearchtsearch_itemtsearch_historysSearch historytheadert
use_cookietload_cookietsave_cookiet
cookiefileR
(Rt__init__tDEFAULT_ICON_URLt
USER_AGENTtMAIN_URLt
getMainUrltHTTP_HEADERtdicttAJAX_HEADERtupdateRt
getFullUrltTruetMAIN_CAT_TABt
cacheLinkstcacheSubCategoriestCOOKIE_FILEt
defaultParamstNonetloggedInRR(tself((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyR3-s$			B,''' 		2		cs–|ikrtˆjƒ}nˆ}ˆjjˆƒ‰‡‡fd†}iˆjjˆƒd6ˆjd6ˆjd6|d6|d<ˆjjˆ||ƒS(Ncs*ˆjj|ƒr|Stjˆ|ƒSdS(N(tcmt
isValidUrlturlparseturljoin(R'(tbaseUrlRE(sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyt_getFullUrlHstdomaintcookie_files
User-Agenttfull_url_handletcloudflare_params(	R9RBRFtiriToUritupt	getDomainRAR5tgetPageCFProtection(RERJt	addParamst	post_datatorigBaseUrlRK((RJREsO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytgetPageDs8cCs!tdƒ|j|j|ƒdS(NsSerijeOnline.listMainMenu(RtlistsTabR>(REtcItemtnextCategory((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytlistMainMenuNs
cCs©tdƒi|_i}|j|jdƒƒ\}}|rÀ|jjj|ddƒ}xe|D]Z}|j|jjj|dƒdƒ}|j|jjj|d	ƒdƒ}	|	||<q_Wnt|ƒ|j|d
ƒ\}}|sídStj	dƒ}
|jjj
|ddƒd}|jjj
|d d!tƒd}tj	dƒj|ƒ}xM|D]E}|
j|dƒ}g}t
|ƒdkrá|jjj|dd
dƒ}
xd|
D]\}|j|jjj|dƒdƒ}|j|ƒ}|ji|d6|d
6|d6ƒq²W|j|dƒ}|j|jjj|ddƒdƒ}|jditdƒd6|d
6ƒ||j|<t|ƒ}|jitd6|d6|d6|d
6|d6|j|dƒd6ƒ|j|ƒq\n|jjj|dd
dƒ}
xž|
D]–}|j|ƒ}|j|jjj|dƒdƒ}t|ƒ}|jitd6|d6|d6|d
6|d6|j|dƒd6ƒ|j|ƒqWq\WdS("NsSerijeOnline.listCategoriess/browse.htmls<divt>spm-li-categorys</ashref=['"]([^'^"]+?)['"]issrc=['"]([^'^"]+?)['"]R's<ul[^>]+?dropdown-menu[^>]+?>snav-collapses<as
/topvideosis<uls
dropdown-menus'<li[^>]+?dropdown\-submenu[^>]+?>|</ul>is</a>R&tcat_urls--All--tgood_for_favR%R
ticon(s<divR\spm-li-category(s</aR\(s<divR\snav-collapse(s<aR\s
/topvideos(s<ulR\s
dropdown-menu(s<aR\s
/topvideos(RR@RWR<RFtphtgetAllItemsBeetwenNodestgetSearchGroupstretcompiletgetDataBeetwenNodestFalsetsplittlentgetAllItemsBeetwenMarkerstcleanHtmlStrRtinsertRR9R;tgettaddDir(RERYt
nextCategory1t
nextCategory2t
cacheIconstststdatatitemtcatUrltcatIcontreObjSubCatstcatItemt
subCategoriesttmpR'R&tcatTitletparams((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytlistCategoriesRsT
	
%%
"

%&)$
C

%CcCs^tdƒ|jj|dgƒ}t|ƒ}|jitd6|d6ƒ|j||ƒdS(NsSerijeOnline.listSubCategoriesR'R^R%(RR@RlR9R;R=RX(RERYRZttabR{((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytlistSubCategoriesƒs

c	CsUtd|ƒ|j|dƒ\}}|s1dS|jjj|ddƒd}|jjj|dd	ƒ}xœ|D]”}|j|jjj|d
ƒdƒ}|jj|ƒsµqrn|j	|ƒ}t
|ƒ}|jitd6|d
6|d6|d6ƒ|j
|ƒqrWt|jƒdkrQg|_t
|ƒ}||d
<|j|dƒndS(NsSerijeOnline.listSort [%s]R's<divR\sbtn-group btn-group-sorts</ulis<as</a>shref=['"]([^'^"]+?)['"]iR^R%R&itexplore_item(s<divR\sbtn-group btn-group-sort(s</ulR\(RRWRFR`ReRiR<RbRGRjR9R;RfRmRhtcurrListt	listItems(	RERYRZRqRrRsR'R&R{((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytlistSort‹s&
%)	
cCsQtd|ƒ|jddƒ}|j|dƒ\}}|sCdS|j|jjj|dƒdƒ}|jjj|ddƒ}xf|D]^}|j|jjj|d
ƒdƒ}|j|jjj|dƒdƒ}	|j	|jjj
|dd
ƒdƒ}
g}|jjj|ddƒ}x9|D]1}
|j	|
ƒ}
|
dkr*|j|
ƒq*q*Wdj
|ƒd|j	|jjj
|ddƒdƒ}t|ƒ}|jitd6|d6|
d6|d6|	d6|d6ƒ|j|ƒqŠW|jj|ƒrMt|ƒ}|jitd6tdƒd6|d6|dd6ƒ|j|ƒndS(NsSerijeOnline.listItems [%s]tpageiR's1<a[^>]+?href=['"]([^'^"]+?)['"][^>]*?>&raquo;</a>s<divR\spm-li-videos</lishref=['"]([^'^"]+?)['"]ssrc=['"]([^'^"]+?)['"]s<h3s</h3>is<spans</span>R
s | s[/br]s<ps</p>R^R%R&R_tdescs	Next page(s<divR\spm-li-video(s</liR\(RRlRWR<RFR`RbRatgetFullIconUrlRjtgetDataBeetwenMarkersRiRtjoinR9R;R=RmRGRfR(RERYRZRƒRqRrtnextPageRsR'R_R&R„RyttR{((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyR¡s2%
%%(
973cCstd|ƒ|jj|jdddgƒ|j|dƒ\}}|sPdSd}|dkrw|jddƒ}n|jjj|d%d&ƒd}|jjj|d
dƒ}t	|ƒdkr|j
|jjj|ddƒdƒ}|j|dƒ}nd}d}td||fƒd}	|jjj|d'd(ƒd}|dkr¡tdƒ|jjj|ddt
ƒ}t|ƒx|D]}
d|
krŒyÝttj|
dƒdtƒ}tj|ƒ}|j
dƒd|}|j|ƒ\}}tdƒt|ƒ|rzd|kr*|}qz|j|jjj|d)d*ƒdƒ}
|
dkrztƒj|
ddƒqznWntk
r•tƒnXPqŒqŒWnt|ƒtjdtjƒj|ƒ}x´|D]¬}|j
|ƒ}|jj|ƒsýqÐn|	d7}	t	|ƒdkr0d |	|d!f}n
|d!}t|ƒ}|jit
d"6|d!6|d6|d6ƒ|j|ƒqÐW|jj|ƒr
||dkr
||jd#dƒkr
t|ƒ}|jitd"6|d$6|d!6|d6|d#6dd6ƒ|j |ƒndS(+NsSerijeOnline.exploreItem [%s]t	PHPSESSIDt__cfduidtcf_clearanceR'R
R„s<divR\spm-submit-datas</divis<as</a>iÿÿÿÿshref=['"]([^'^"]+?)['"]is)################# catUrl[%s] catTitle[%s]tPlayerholders#################sdata:t}t	getplayers	/ajax.phpt?s---------------srestricted-videos</h2terrori
s#<iframe[^>]+?src=['"]([^"^']+?)['"]s%s. %sR&R^R]R%(s<divR\spm-submit-data(s</divR\(s<divR\R(s</divR\(s<divR\srestricted-video(s</h2R\(!RRFtclearCookieRARWRlR`ReRiRhR<RbRjRfRtjsontloadsR=turllibt	urlencodeRtpusht	ExceptionRRcRdt
IGNORECASEtfindallRGR9R;taddVideoRm(RERYRZRqRrR„RyRtRztnumRstqueryR'tmsgR&R{((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytexploreItem¾sr)




	( 




):7cCsrtd|||fƒt|ƒ}d|jddƒkr^|jdtj|ƒƒ|d<n|j|dƒdS(NsISerijeOnline.listSearchResult cItem[%s], searchPattern[%s] searchType[%s]iRƒssearch.php?keywords=%sR'R(RR9RlR<R•t
quote_plusR(RERYt
searchPatternt
searchType((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytlistSearchResults
#cCs4td|ƒ|djddƒ}|jj|ƒS(Ns"SerijeOnline.getLinksForVideo [%s]R's	youtu.be/syoutube.com/watch?v=(RtreplaceRQtgetVideoLinkExt(RERYtvideoUrl((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pytgetLinksForVideosc
Cs¨tdƒd|jksO|jtjjjjksO|j	tjjj
jkr¡tjjjj|_tjjj
j|_	t|jƒt
|_d|jjƒks¹d|j	jƒkr½t
S|j|jdƒƒ\}}|såt
S|jjj|ddƒ\}}|st
S|j|jjj|dƒd	ƒ}|jjj|d
dƒ}|j|jjj|ddƒƒi}xP|D]H}|jjj|dƒd	}|jjj|d
ƒd	}|||<qW|ji|jd6|j	d6ƒt|jƒ}	t|	dƒ|	d<|jdƒ|	dd<|jj||	|ƒ\}}|rld|krltdƒt|_q¡|jjttdƒdtjddƒtdƒn|jS(NstryTologin startR
s/index.htmls<formR\t
login_forms</formsaction=['"]([^'^"]+?)['"]is<inputs<buttonsname=['"]([^'^"]+?)['"]svalue=['"]([^'^"]+?)['"]tusernametpassR.s
/index.phpR!s	do=logouts
tryTologin OKs
Login failed.ttypettimeouti
stryTologin failed(s<formR\R¨(s</formR\( RRCRDRRRRRtvalueRRRRARftstripRWR<RFR`ReRbRitextendR;R9RBR=t	sessionExtopenRRt
TYPE_ERROR(
RERqRrt	actionUrlRyRURstnameR­t
httpParams((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyt
tryTologinsD
*
	*!%"
!
(
iR
c	Cstdƒ|jƒtj|||||ƒ|jjddƒ}|jjddƒ}|jjddƒ}td||fƒg|_|dkr¯|jidd6dƒnX|dkrÔ|j	|jd	d
ƒn3|d	krö|j
|jd
ƒn|d
kr|j|jdƒnï|dkr:|j|jdƒnÍ|d
kr\|j
|jdƒn«|dkr~|j|jdƒn‰|dkrÊt|jƒ}|jitd6dd6ƒ|j|||ƒn=|dkr|jidd6dd6dtdƒƒntƒtj|||ƒdS(NshandleService startR´R
R%tmodesKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] tlist_genresR(tlist_sub_categoriest	list_sortR$Rt
list_listsR*tsearch_next_pageR,R-RR„sType: (ssearchR¼(RR¶Rt
handleServicetcurrItemRlR€RCR[R|R~R‚Rt	listListsRŸR9R;RfR£tlistsHistoryRRtendHandleService(	REtindextrefreshR¡R¢R´R%R·RY((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyR½:s<

	*N(t__name__t
__module__R3RCRWR[R|R~R‚RRŸR£R§R¶R½(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyR+s	
		1				C			,tIPTVHostcBseZd„ZRS(cCstj|tƒtgƒdS(N(RR3RR=(RE((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyR3fs(RÄRÅR3(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyRÆds(!t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRRRt.Plugins.Extensions.IPTVPlayer.components.ihostRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRRRHRcR•R“R˜t
simplejsontComponents.configRR	R
tScreens.MessageBoxRRfRRRRRRRRÆ(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostserijeonline.pyt<module>s$"
		ÿ: