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ÅddlmZddlmZmZddlmZddlm	Z	ddl
mZddlZyddl
Z
Wnek
r‘ddlZ
nXddlmZd„Zd	efd
„ƒYZdS(iÿÿÿÿ(tTranslateTXT(tprintDBGtGetCookieDir(tcommon(t	urlparser(tCBaseHostClassN(tMainSessionWrappercCs
g}|S(N((t
optionList((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyt
GetConfigList stShowsportTVApicBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs”d|_idd6|jd6|_tdƒ|_tƒ|_tƒ|_tƒ|_	i|_
|j
jitd6td6|jd6ƒi|_
dS(	Nshttp://showsport-tv.com/sJMozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0s
User-AgenttReferersshowsporttvcom.cookietsave_cookietload_cookiet
cookiefile(tMAIN_URLtHTTP_HEADERRtCOOKIE_FILERt	sessionExRtcmRtupthttp_paramstupdatetTruet	cacheList(tself((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyt__init__(s		(cCsÉtdƒg}|jj|jƒ\}}|s5gS|jjj|ddtddƒ}t|ƒrr|d}nd	}|jjj|d
dƒ}x/|D]'}|j	|jjj
|ddtƒdƒ}|j	|jjj
|d
dtƒdƒ}|jjj|ddtƒdj
ddƒjƒ}d|krEtdƒ}	ntdƒ}	|d	krcqšn|jdƒsxqšnt|ƒ}
|
jidd6|d6|d6|d6|	d6ƒ|j|
ƒqšW|S(NsShowsportTVApi._getChannelsLists<ul t>snav-second-levels</navtnumNodesiits<lis</li>shref="([^"]+?)"ssrc="([^"]+?)"swatch-s-online.htmlt-t tOfflinesOff AirsOn Airthttptlist_videostabc_catttitleturlticontdesc(s<ul Rsnav-second-level(s</navR(RRtgetPageRtphtgetAllItemsBeetwenNodestFalsetlentgetAllItemsBeetwenMarkerst
getFullUrltgetSearchGroupsRtgetDataBeetwenMarkerstreplaceR#t_t
startswithtdictRtappend(RtcItemtchannelsTabtststdatatitemR$R%R#R&tparams((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyt_getChannelsList3s2
$

++40c	Cs¨tdƒg}|jj|dƒ\}}|s6gS|jjj|ddƒd}|j|jjj|dƒdƒ}|jjj|ddddƒ}t|ƒr´|d}nd
}|jjj	|ddƒ}xÌ|D]Ä}d|krôqÜn|jjj|dƒd}|d
kr)||}n%|j|jjj|dƒdƒ}t
|ƒ}|jidd6d|d|j|ƒfd6|d6ƒ|j
|ƒqÜW|S(NsShowsportTVApi._getVideoItemsR$sfunction switchServert}is%['"]src['"][^'^"]*?['"]([^'^"]+?)['"]is<ul Rsnav-tabss</ulRRs<lis</li>tswitchServersswitchServer\(\s*([0-9]+?)\s*\)s#switchServer\(\s*['"]([^'^"]+?)['"]tvideottypes%s [%s]R#(s<ul Rsnav-tabs(s</ulR(RRR'R(R/R-R.R)R+R,R3RtcleanHtmlStrR4(	RR5R6R7R8t
basePlayerUrlR9R$R:((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyt_getVideoItemsKs.
%!


%9cCs,tdƒg}|jj|jƒƒ\}}|s8gS|jjj|ddtddƒ}t|ƒru|d}nd	}tj	d
|ƒ}x˜|D]}|j
|jjj|ddƒdƒ}t|ƒ}|j
id
d6|d6ƒ|j|ƒ|jjj|d d!ƒ}t|ƒx|D]þ}|jjj|ddƒ}	t|	ƒr"|j|jjj|	dddtƒdƒ}	nq"|j|jjj|ddtƒdƒ}
|j
|ƒ}d|kr×d|}nt|ƒ}|j
idd6|d6|	d6|
d6|d6ƒ|j|ƒq"Wq”W|S("NsShowsportTVApi._getScheduleLists<tdRsdate-rows</tableRiiRs<td[^>]+?date\-row[^>]+?>s<is</td>tmarkerR?R#s<trte_rows</trs<aiÿÿÿÿshref="([^"]+?)"ssrc="([^"]+?)"tblinks[LIVE] R!R"R$R%R&(s<tdRsdate-row(s</tableR(s<trRRD(s</trR(RRR't
getMainUrlR(R)R*R+tretsplitR@R/R3RR4R,R-R.R(RR5R6R7R8tdatR&R:R9R$R%R#((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyt_getScheduleListbs<
$

(


2+
0cCsôtdƒg}|jddƒ}|dkr–x¿itdƒd6dd6itdƒd6dd6gD],}t|ƒ}|j|ƒ|j|ƒqcWnZ|dkr´|j|ƒ}n<|dkrÒ|j|ƒ}n|dkrð|j	|ƒ}n|S(	NsShowsportTVApi.getChannelsListR"tChannelsR#t
list_channelstSchedulet
list_scheduleR!(
RtgettNoneR1R3RR4R;RJRB(RR5R6tcategoryR9R:((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pytgetChannelsList€s
;
cCsqtdƒg}i|jd6|jd6td6}|jj|d|ƒ\}}|sZgS|jj|d|ƒS(NsShowsportTVApi.getVideoLinktheaderR
RR$(RRRRRR'RtgetAutoDetectedStreamLink(RR5turlsTabR:R7R8((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pytgetVideoLink“s
!(t__name__t
__module__RR;RBRJRRRV(((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyR	&s					(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRR1t-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRt*Plugins.Extensions.IPTVPlayer.libs.pCommonRt,Plugins.Extensions.IPTVPlayer.libs.urlparserRt.Plugins.Extensions.IPTVPlayer.components.ihostRRGtjsont	Exceptiont
simplejsont2Plugins.Extensions.IPTVPlayer.components.asynccallRRR	(((sL/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/libs/showsporttvcom.pyt<module>s