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×ddlmZddlmZmZddlmZmZm	Z	ddl
mZddlZyddl
Z
Wnek
rddlZ
nXddlmZd„Zdefd	„ƒYZd
efd„ƒYZdS(iÿÿÿÿ(tTranslateTXT(t	CHostBasetCBaseHostClass(tprintDBGtprintExctbyteify(tgetDirectM3U8PlaylistN(tconfigcCsdS(Nshttp://okgoals.com/((((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytgettytulstOkGoalscBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
dd
d
d„ZRS(cCs8tj|idd6dd6ƒidd6dd6|_t|jƒ|_|jjid	d
6ƒi|jd6td6td
6td6|jd6|_d|_	|j
dƒ|_idd6tdƒd6|j
dƒd6idd6tdƒd6|j
ƒd6idd6tdƒd6td6idd6tdƒd6g|_dS(Ns
OkGoals.tvthistorysfilisertv.cookietcookiesMozilla/5.0s
User-Agents	text/htmltAccepttXMLHttpRequestsX-Requested-Withtheadert
use_cookietload_cookietsave_cookiet
cookiefileshttp://www.okgoals.com/s/okgoals_logo.jpgt
list_itemstcategorytMainttitles	index.phpturltlist_categoriest
CategoriestsearchtSearchtsearch_itemtsearch_historysSearch history(Rt__init__tHEADERtdicttAJAX_HEADERtupdatetTruetCOOKIE_FILEt
defaultParamstMAIN_URLt
getFullUrltDEFAULT_ICON_URLt_t
getMainUrltMAIN_CAT_TAB(tself((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyRs2	'$cCs2|jdƒrd|}ntj||ƒ}|S(Ns//shttp:(t
startswithRR'(R,R((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyR'*s
cCs¨idd6dd6idd6dd6idd6dd6id	d6d
d6idd6dd6id
d6dd6g}x,|D]$}|d|krs|d}PqsqsW|j|ƒS(Ns
images/it.pngtorigs3https://www.bandiere-mondo.it/data/flags/h80/it.pngtnews
images/pt.pngs3https://www.bandiere-mondo.it/data/flags/h80/pt.pngs
images/fr.pngs3https://www.bandiere-mondo.it/data/flags/h80/fr.pngs
images/de.pngs3https://www.bandiere-mondo.it/data/flags/h80/de.pngs
images/cl.pngsThttps://www.calcioweb.eu/wp-content/uploads/2014/04/Logo-Champions-League-bianco.jpgsimages/uef.pngs/https://img.uefa.com/imgml/uefaorg/new/logo.png(tgetFullIconUrl(R,ticont	ICON_PATHti((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytgetBiggerImage/s

c
Cs>tdƒ|jj|dƒ\}}|s0dS|jjj|ddƒd}|jjj|dddtƒ}xÇ|D]¿}|j|jjj|d	ƒd
ƒ}|jj	|ƒsºqwn|j
|jjj|dƒd
ƒ}|j|ƒ}t|j
ƒƒ}itd6|d
6|d6|d6|d6}	|j|	ƒqwWdS(NsOkGoals.listCategoriesRs<ul id="mediamenu">s</ul>is<lis</li>twithMarkersshref=['"]([^'^"]+?)['"]issrc=['"]([^'^"]+?)['"]tgood_for_favRRR1(RtcmtgetPagetphtgetDataBeetwenMarkerstgetAllItemsBeetwenMarkersR#R'tgetSearchGroupst
isValidUrlR4tcleanHtmlStrR)t
capitalizetaddDir(
R,tcItemtnextCategorytststdatatitemRR1Rtparams((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytlistCategories@s
!
%%)c
Csätdƒ|jddƒ}|jj|dƒ\}}|sBdS|jjj|ddƒd}|jjj|dj|dƒƒd}|jjj|d	d
dt	ƒ}xÕ|D]Í}|j
|jjj|dƒdƒ}|j|jjj|d
ƒdƒ}	|j|jjj|dƒdj
ddƒƒ}
|j|ƒ}itd6|d6|d6|d6|	d6|
d6}|j|ƒq²W|dkràt|ƒ}|jitdƒd6|dd6|j
|ƒd6ƒ|j|ƒndS(NsOkGoals.listItemstpageiRs<div class="wpnavi">s<div class="clear">s3<a[^>]+?href=["']([^'^"]+?)["'][^>]*?>\s*{0}\s*</a>is<div id="matchlistng">s</a>R5shref=['"]([^'^"]+?)['"]ssrc=['"]([^'^"]+?)['"]salt=['"]([^'^"]+?)['"]R1tR6RRtdescs	Next page(RtgetR7R8R9R:R<tformatR;tFalseR'R4R>treplaceR#R@R R"R)(
R,RARBRHRCRDtnextPageRERR1RJRRF((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyt	listItemsQs&
)!
%%105c	Cs>tdƒ|jj|dƒ\}}|s0dS|jjj|ddtƒd}|jdƒ}xÖ|D]Î}|j|jjj|d	ƒd
ƒ}|sÁ|j|jjj|dƒd
ƒ}n|sï|j|jjj|dƒd
ƒ}n|jj	|ƒrh|d
}it
d6|d
6|d6}|j|ƒqhqhWdS(NsOkGoals.exploreItemRs<divt>tmatchcontainers</div>is	</script>s7['"]([^'^"]*?//config\.playwire\.com[^'^"]+?\.json)['"]isloadSource\(['"]([^'^"]+?)['"]ssrc\s?=\s?['"]([^'^"]+?)['"]RR6(s<divRQRR(RR7R8R9R:RMtsplitR'R<R=R#taddVideo(	R,RARCRDttmpRERRRF((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytexploreItemks 
"
%((
cCs¹td|ƒg}|d}d|kr`t|ƒ}|r`tt|ƒƒ|j|ƒ|Snd|krŠ|jj|ƒ\}}|sŽgSyÞttj|ƒƒ}d|krÇ|ddd}n
|d}|jj|ƒ\}}|jj	j
|d	d
tƒdjƒ}|jj	j
|dd
ƒ}x<|D]4}	|jj	j|	dƒd}|jj	j|	dƒd}
|jj	j|	dƒd}d|jdƒd||
f}|jdƒsÍ|d|}n|jdƒr3d|krIt|ƒ}
xBtt|
ƒƒD].}d|
|d|
|df|
|d<qW|j|
ƒqg|ji|d6|d6ƒq3q3WWqµtk
r†tƒqµXn+|jdƒrµ|j|jj|ƒƒn|S(NsOkGoals.getLinksForVideo [%s]Rtm3u8splaywire.comtcontenttmediatf4mtsrcs	<baseURL>s
</baseURL>is<media RQsurl=['"]([^'^"]+?)['"]isheight=['"]([^'^"]+?)['"]sbitrate=['"]([^'^"]+?)['"]s[%s] bitrate:%s height: %st.iÿÿÿÿthttpt/sls] bitrate:%s height: %stbitratetheighttname(RRtstrtextendR7R8RtjsontloadsR9R:RMtstripR;R<RSR-trangetlentappendt	ExceptionRtuptgetVideoLinkExt(R,RAturlTabtvideoUrlRFRCRDRtbaseUrlRER`R_RathlsTabtidx((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytgetLinksForVideosP


(
 ,&
cCstd|ƒg}|S(NsOkGoals.getVideoLinks [%s](R(R,RnRm((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyt
getVideoLinks¯sc
Cstd|||fƒt|ƒ}|jdƒtj|ƒ}|jj|ƒ\}}|sadS|jjj|ddƒd}|jjj	|dddt
ƒ}xq|D]i}|j|jjj|d	ƒd
ƒ}|j|ƒ}it
d6dd
6|d6|d6}	|j
|	ƒq¨WdS(NsJKissCartoonMe.listSearchResult cItem[%s], searchPattern[%s] searchType[%s]s5search.php?dosearch=yes&search_in_archives=yes&title=sFounded matchess<div class="clear">is<as</a>R5shref=['"]([^'^"]+?)['"]iR6texplore_itemRRR(RR R'turllibt
quote_plusR7R8R9R:R;R#R<R>R@(
R,RAt
searchPatternt
searchTypeRRCRDRERRF((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytlistSearchResult´s!
%"cCstdƒtj|ƒS(NsOkGoals.getFavouriteData(RRdtdumps(R,RA((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytgetFavouriteDataÄs
cCsWtdƒg}y(ttj|ƒƒ}|j|ƒ}Wntk
rRtƒnX|S(NsOkGoals.getLinksForFavourite(RRRdReRrRjR(R,tfav_datatlinksRA((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytgetLinksForFavouriteÈs

cCsUtdƒyttj|ƒƒ}Wntk
rCi}tƒnX|j|ƒtS(Ns$OkGoals.setInitListFromFavouriteItem(RRRdReRjRR@R#(R,R|RF((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pytsetInitListFromFavouriteItemÑs


iRIc	Cs«tdƒtj|||||ƒ|jjddƒ}|jjddƒ}|jjddƒ}td||fƒg|_|dkr¨|j|jidd6ƒnì|dkrÊ|j	|jdƒnÊd|krì|j
|jd	ƒn¨|d	kr|j|jƒn‰|dkrWt|jƒ}|j
itd6dd6ƒ|j|||ƒn=|d
kr|jidd6d
d6dtdƒƒntƒtj|||ƒdS(NshandleService startRaRIRtmodesKhandleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] RRRtRtsearch_next_pageRRR
RJsType: (ssearchR(RRt
handleServicetcurrItemRKtcurrListtNonetlistsTabR+RGRPRVR R"RMRytlistsHistoryR)RtendHandleService(	R,tindextrefreshRwRxRaRR€RA((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyR‚Ûs.
	*(t__name__t
__module__RR'R4RGRPRVRrRsRyR{R~RR‚(((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyR	s							.						
tIPTVHostcBseZd„ZRS(cCstj|tƒtgƒdS(N(RRR	R#(R,((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyRþs(R‹RŒR(((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyRüs(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRR)t.Plugins.Extensions.IPTVPlayer.components.ihostRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRt2Plugins.Extensions.IPTVPlayer.libs.urlparserhelperRRuRdRjt
simplejsontComponents.configRRR	R(((sJ/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostokgoals.pyt<module>s
	ä