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ÛddlmZddlmZmZmZmZmZm	Z	ddl
mZmZm
Z
ddlZddlZyddlZWnek
r¡ddlZnXd„Zdefd„ƒYZdefd	„ƒYZdS(
iÿÿÿÿ(tTranslateTXT(t	CHostBasetCBaseHostClasstCDisplayListItemtRetHosttCUrlItemtArticleContent(tprintDBGtprintExct
GetLogoDirNcCsdS(Nshttp://www.filma24hd.com/((((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgettytulstFilma24hdComcBsMeZdZedZdZdZdZidd6edƒd6ed	6ed
6idd6edƒd6ed	6ed
6id
d6edƒd6ed6ed
6idd6edƒd6ed
6gZ	d„Z
ed„Zd„Z
d„Zdd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Zd!ddd"„ZRS(#shttp://www.filma24hd.com/s?s=s=http://www.filma24hd.com/wp-content/uploads/2015/12/f24hd.pngshttp://seriale.filma24hd.com/sFhttp://seriale.filma24hd.com/wp-content/uploads/2015/12/f24hdserie.pngtmoviestcategorytMoviesttitleturlticontseriess	TV SeriestsearchtSearchtsearch_itemtsearch_historysSearch historycCs+tj|idd6dd6ƒg|_dS(NRthistorysFilma24hdCom.cookietcookie(Rt__init__tseriesSubCategoryCache(tself((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyR&scCsµ|s|j}n	|j}|jdƒr7|d}ndt|ƒkrf|jdƒrf||}n|jdƒsŠ|jddƒ}nd}||kr±|j|dƒ}n|S(	Nt/iithttpshttps://shttp://swww.seriale.sseriale.(tMAIN_URLt
S_MAIN_URLt
startswithtlentreplace(RRRtmainUrltm1((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyt_getFullUrl*s	
"
c	Cstdƒ|jj|dƒ\}}|s0dS|jjj|ddtƒd}|jjj|ddƒ}xª|D]¢}|j|ƒ}|j|jjj	|ddt
ƒd	ƒ}|d
kstd|krÒqtnt|ƒ}|ji|d6|j|ƒd6|d
6ƒ|j
|ƒqtWdS(NsFilma24hdCom.listMoviesCategoryRs<!-- Menu Starts -->s<!-- Menu Ends -->is<a s</a>shref=['"]([^"^']+?)["']ittserialeR
R(RtcmtgetPagetphtgetDataBeetwenMarkerstFalsetgetAllItemsBeetwenMarkerstcleanHtmlStrR%tgetSearchGroupstTruetdicttupdatetaddDir(	RtcItemtnextCategorytststdatatitemRRtparams((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytlistMoviesCategory:s
"
++cCstdƒg|_|jj|dƒ\}}|s9dSd}|jjj|ddtƒd}|jdƒ}x|D]ˆ}||krqwn|j|ƒ}|jjj|dd	d
ƒd}|jjj	|ddt
ƒd}	|j|	ƒ}	|j|ƒ}g}
|jjj
|ddd
ƒ}xc|D][}|j|ƒ}
|jjj	|ddt
ƒd}|
ji|
d
6|j|ƒd6ƒq-Wt|
ƒrwt|ƒ}|ji|d6t|jƒd6|j|	ƒd6|d
6ƒ|j|ƒ|jj|
ƒqwqwWdS(NsFilma24hdCom.listSeriesCategoryRs<ul class="sub-menu">s<div id="main-nav">s<!-- end #main-nav -->is</ul>is<as</a>shref=['"]([^"^']+?)["']s<a RR
tsub_idx(RRR(R)R*R+R,tsplittrgetDataBeetwenMarkersR/R0R%R.R-tappendR!R1R2R3(RR4R5R6R7tmarkerR8ttmptsubCategoryTitletsubCategoryUrltsubItemsTabtsubItemstsubItemRRR9((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytlistSeriesCategoryIs6
	"
#"
"(;
tdircCsktdƒxZ|D]R}t|ƒ}|j|ƒd|d<|dkrV|j|ƒq|j|ƒqWdS(NsFilma24hdCom.listsTabR
tnameRG(RR1R2R3taddVideo(RttabR4ttypeR8R9((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytlistsTabhs



R&cCsˆtdƒ|d}d|krF|jdƒ}|d}|d}nd}|jddƒ}|dkr{|d|7}n|dkr˜|d|7}n|jj|ƒ\}}|sºdSt}d|d|krÝt}nd	|kr
|jjj|d
dƒ}t}	n!|jjj|dd
ƒ}t}	x|D]}
|	rW|
jdƒd}
n|jjj	|
dƒd}|dkr…q5n|jjj	|
dƒd}|jjj
|
ddƒd}|j|
jdƒdƒ}
t|ƒ}|j
i|j|ƒd6|j|ƒd6|
d6|j|ƒd6ƒ|j|ƒq5W|r„t|ƒ}|j
itdƒd6|dd6ƒ|j|ƒndS(NsFilma24hdCom.listItemsRt?iiR&tpages	/page/%d/sseriale.s<div id="post-s<!-- ends<!-- Post Starts -->s<!-- Post Ends -->shref="([^"]+?)"ssrc="([^"]+?)"s<h2s</h2>s<p class="entry-meta">iÿÿÿÿRtdescRs	Next page(RR<tgetR(R)R,R0R*R-R/R+R.R1R2R%RIt_R3(RR4R
RtpostRNR6R7tnextPaget	serieItemR8RRROR9((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyt	listItemsrsN



		
D%cCs|td|ƒ|jddƒ}|dksA|t|jƒkrEdS|j|}t|ƒ}||d<|j||ƒdS(NsFilma24hdCom.listSeasons [%s]R;iÿÿÿÿiR
(RRPR!RR1RL(RR4R5tidxRJR9((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytlistSeasons s!

cCsFtj|ƒ}t|ƒ}|jtj|ƒ|d<|j|ƒdS(NR(turllibt
quote_plusR1tSRCH_URLRU(RR4t
searchPatternt
searchType((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytlistSearchResult«sc
Cstd|ƒg}|d}|jj|ƒ\}}|s@gS|jjj|ddtƒd}d|jj|ƒkr«|ji|jj	|ƒd6|d6dd6ƒn|jjj
|dd	d
tƒd}tj
dtjƒj|ƒ}xHtt|ƒƒD]4}|jid|dd6||d6dd6ƒqW|jjj
|d
dd
tƒd}||jjj
|ddd
tƒd7}tj
dtjƒj|ƒ}xZ|D]R}	d|jj|	ƒkrÐq¬n|ji|jj	|	ƒd6|	d6dd6ƒq¬W|S(Ns"Filma24hdCom.getLinksForVideo [%s]Rs'<iframe[^>]+?src=['"](http[^"^']+?)['"]iiRHtneed_resolves<video s</video>t
caseSensitives4<source[^>]*?src=['"](http[^"]+?)['"][^>]*?mp4[^>]*?s	direct %ds<tbody>s</tbody>s<map s</map>s!<a[^>]*?href=['"](http[^"]+?)['"](RR(R)R*R/R0tuptcheckHostSupportR>tgetHostNameR+R,tretcompilet
IGNORECASEtfindalltrangeR!(
RR4turlTabRR6R7tvideoUrltvideoUrlTabRVR8((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetLinksForVideo±s*
"1%2%)
2cCstd|ƒ|jj|ƒS(NsFilma24hdCom.getVideoLinks [%s](RR`tgetVideoLinkExt(RRi((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyt
getVideoLinksÊscCs|dS(NR((RR4((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetFavouriteDataÎscCs|ji|d6ƒS(NR(Rk(Rtfav_data((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetLinksForFavouriteÑscCstd|ƒg}|jj|dƒ\}}|s:|Sd}||krUd}nd}||krpd}n|jjj|||ƒd}|j|ƒ}|jdd	ƒ}|jd
d	ƒ}	i}
i|j|	ƒd
6|j|ƒd6id	d
6|j|ƒd6gd6|
d
6gS(Ns#Filma24hdCom.getArticleContent [%s]Rs<span style="color: #00s<div class="entry-contents
<p>&nbsp;</p>s<tbody>iRR&Rttexttimagest
other_info(RR(R)R*R+R.RPR%(RR4tretTabR6R7R$tm2RORRt	otherInfo((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetArticleContentÔs"		ic	Csõtdƒtj|||||ƒ|jjddƒ}|jjddƒ}td||fƒg|_|dkr“|j|jidd6ƒnK|dkrµ|j	|jdƒn)|dkrÔ|j
|jƒn
|dkr3t|jƒ}|jidd6t
d	ƒd
6ƒ|j|ƒ|j|jdƒn«|dkrU|j|jdƒn‰|dkr¡t|jƒ}|jitd6dd6ƒ|j|||ƒn=|dkr×|jidd6dd6dt
dƒƒntƒtj|||ƒdS(NshandleService startRHR&R
sKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] Rt
list_itemsRs--All--Rtlist_seasonsRtsearch_next_pageRRRROsType: (ssearchRz(RRt
handleServicetcurrItemRPtcurrListtNoneRLtMAIN_CAT_TABR:RUR1R2RQR3RFRWR,R]tlistsHistoryRtendHandleService(	RtindextrefreshR[R\RHR
R9R4((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyR{ès6
	!
*(t__name__t
__module__RRZtDEFAULT_ICON_URLtMAIN_TV_SERIES_URLtDEFAULT_TV_SERIES_ICON_URLRQR0RRR,R%R:RFRLRURWR]RkRmRnRpRwR{(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyRs.
%%%$			
.							tIPTVHostcBsYeZd„Zd„Zdd	d„Zd„Zdd„Zd„Zd„Z	d„Z
RS(
cCs)tj|tƒttjtjgƒdS(N(RRRR0Rt
TYPE_VIDEOt
TYPE_AUDIO(R((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyRscCsttjdtdƒgƒS(Ntvaluesfilma24hdcomlogo.png(RtOKR	(R((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetLogoPathsicCs“tj}g}|j|ƒs.t|d|ƒS|jj|jj|ƒ}x3|D]+}|jt|d|d|dƒƒqQWttjd|ƒS(NRŒRHRR^(	RtERRORtisValidIndexthostRkR}R>RR(RtIndextselItemtretCodetretlistturlListR8((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyRks	
)cCscg}|jj|ƒ}x5|D]-}d}|jt|d|d|ƒƒqWttjd|ƒS(NiRHRRŒ(R‘RmR>RRR(RRR•R–R8R^((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetResolvedURL"s
%cCstj}g}|j|ƒs.t|d|ƒS|jj|}|ddkr^t|d|ƒS|jj|ƒ}x~|D]v}|jddƒ}|jddƒ}|jdgƒ}	|jddƒ}
|jtd|d|d|	d	|
ƒƒqwWttj	d|ƒS(
NRŒRKtvideoRR&RqRrRstrichDescParams(
RRRR‘R}RwRPR>RR(RR’R”R•R4thListR8RRqRrt
othersInfo((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyRw,s	
,cCsqg}g}g}tj}d}d|dkra|jdtƒrUtj}|}qµtj}nT|ddkr}tj}n8d|dkr™tj}nd|dkrµtj	}n|tj	tjgkr
|jddƒ}d|kr
|j
td	|d
ƒƒq
n|jddƒ}|jddƒ}	|jd
dƒ}
td|d|	d|d|dd
d|
d|ƒS(NR
RKRR˜tmoretaudioRR&tLinkiRRORRHtdescriptionturlItemsturlSeparateRequestt	iconimagetpossibleTypesOfSearch(RtTYPE_UNKNOWNR~RPR,tTYPE_SEARCHt
TYPE_CATEGORYRŠt	TYPE_MORER‹R>R(RR4thostListtsearchTypesOptionst	hostLinksRKR£RRRŸR((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyt
converItem=s<			cCskyH|jjƒ}x2tt|ƒƒD]}||ddkr%|Sq%WWntk
rftdƒdSXdS(NR
RsgetSearchItemInx EXCEPTIONiÿÿÿÿ(R‘tgetCurrListRgR!t	ExceptionR(Rtlistti((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytgetSearchItemInxds

cCs«yw|jjƒ}d||jdkrv||jd}||jd}|jjj||ƒ||_||_nWn-tk
r¦tdƒd|_d|_nXdS(NRRHRtsearch_typessetSearchPattern EXCEPTIONR&(	R‘R¬t	currIndexRtaddHistoryItemR[R\R­R(RR®tpatternR±((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pytsetSearchPatternns	

	
N(R„R…RRŽR~RkR—RwR«R°Rµ(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyR‰s			
	'	
(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRRQt.Plugins.Extensions.IPTVPlayer.components.ihostRRRRRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRR	RcRXtjsonR­t
simplejsonR
RR‰(((sO/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostfilma24hdcom.pyt<module>s.
	÷