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@s0ddlmZddlmZmZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZmZmZddlmZddlZyddlZWnek
rÉddlZnXed	d
dddgƒejj_d„Zd„Zdefd„ƒYZdefd„ƒYZdS(iÿÿÿÿ(tTranslateTXT(t	CHostBasetCBaseHostClass(tprintDBGtprintExctbyteify(t
clean_html(tgetDirectM3U8Playlist(tconfigtConfigSelectiontgetConfigListEntry(tdatetimeNtdefaultthlstchoicestrtmps
HLS - m3u8cCs/g}|jttdƒtjjjƒƒ|S(NsPreferred streaming protocol(tappendR
t_Rtpluginst
iptvplayertsportdeutschland_streamprotocol(t
optionList((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyt
GetConfigLists%cCsdS(Nshttp://sportdeutschland.tv/((((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pytgettytul#stSportDeutschlandcBsqeZd„Zdd„Zdd„Zd„Zd„Zd„Zd„Zd	„Z	d
„Z
dddd„ZRS(cCsÜtdƒtj|idd6ƒd|_d|_d|_idd6d	d
6dd6|jd
6|jd6|_t|jƒ|j_	idd6t
dƒd6idd6t
dƒd6td6idd6t
dƒd6g|_dS(NsSportDeutschland.__init__Rthistoryschttps://www.sportdeutschland.de/typo3conf/ext/arx_template/Resources/Public/Images/WebSite/logo.pngshttp://sportdeutschland.tv/s8http://proxy.vidibusdynamic.net/sportdeutschland.tv/api/sJMozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0s
User-Agents?text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8tAccepts
gzip, deflatesAccept-EncodingtReferertOrigint
categoriestcategoryt
CategoriesttitletsearchtSearchtsearch_itemtsearch_historysSearch history(
RRt__init__tDEFAULT_ICON_URLtMAINURLtMAIN_API_URLtHTTP_JSON_HEADERtdicttcmtHEADERRtTruetMAIN_CAT_TAB(tself((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyR%(s
			

tcCs9|j|dƒ}d|kr"|Std|ƒjdƒS(Nu%ssutf-8(tgettNoneRtencode(R/titemtkeyRtv((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyt_getJItemStr<sicCsq|j|dƒ}d|krmyttttf}Wn tk
rVtttf}nXt||ƒrm|Sn|S(N(R1R2tinttlongtfloattcomplext	NameErrort
isinstance(R/R4R5RR6tNumberTypes((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyt_getJItemNumBs
cCsa|jj|ƒ\}}|r]y!tj|ƒ}|d}|SWq]tk
rYtƒq]XngS(Ntitems(R+tgetPagetjsontloadst	ExceptionR(R/turltststdata((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyt_getItemsListFromJsonNs

cCs0tjƒ}tj|ƒtj|ƒ}||S(N(ttimeRt
fromtimestamptutcfromtimestamp(R/tutc_datetimet
now_timestamptoffset((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyt
_utc2localZscCs4tdƒ|j|jdƒ}idd6tdƒd6dd6dd6dd	6d
d6}|j|ƒxÊ|D]Â}|j|dƒ}y.|dkr¯d
|ddjdƒ}nWntk
rÃnXidd6|j|dƒd6dd6|d6|j|dƒd6|j|d	ƒd	6d
d6}|j|ƒqjWdS(NsSportDeutschland.listCategoriess(sections?access_token=true&per_page=9999Rtnames--All--R R0t	permalinktuuiditpagetimageu%stimagesisutf-8ticon(RRHR(RtaddDirR7R3RD(R/tcItemRGtparamsR4RV((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pytlistCategories_s
6

"
[cCs‰td|ƒ|j}|j|ddƒ}|j|dƒ}|jddƒ}d|kr†d|kry|d|7}n|d7}n|d	|7}|j|d
|ƒ}xi|D]a}|j|dƒ}y.|dkr÷d|d
djdƒ}nWntk
rnXd|j|dƒ|j|dƒf}	idd6|j|dƒd6dd6|d6|	d6|j|dƒd6}
td|ƒt}y‡|j|dƒj	ddƒj	ddƒ}t
j|dƒ}|t
jƒkr|
dct
d ƒ|j|ƒjd!ƒ7<t}nWntk
r1tƒnX|j|jd"iƒd#ƒ}
|j|d#ƒ}d|
kr‘d|kr‘d$|
|f|
d%<n
d|
d%<d|
d%ks»d|
dkrd|jddƒkså|jd&tƒrõ|j|
ƒq|j|
ƒq²td'|ƒq²W|j|d(|dƒ}dt|ƒkr…t|ƒ}
|
jit
d)ƒd6|dd6ƒ|j|
ƒndS(*Ns'SportDeutschland.listCategory cItem[%s]RSiRRtpatternR0ssections/%ss/assets?ssearch?q=%s&s&access_token=true&page=%d&per_page=100RTu%sRUisutf-8s	%s[/br]%stdurationtteaserRRPR RVtdesctplayersH:::::::::::::::::::::::::::::::::::::
%s
:::::::::::::::::::::::::::::::tdatetTt tZs UTCs%Y-%m-%d %H:%M:%S %Zs
 (planned %s)s%Y/%m/%d %H:%M:%StsectionRQsZhttp://proxy.vidibusdynamic.net/sportdeutschland.tv/api/permalinks/%s/%s?access_token=trueREtlives,SportDeutschland.listCategory wrong item[%s]spage=%d&per_page=100s	Next page(RR(R?R7R1RHR3RDtFalsetreplaceRtstrptimetutcnowRROtstrftimeR-RR2taddVideot
addArticletlenR*tupdateRW(R/RXtbaseUrlRStbaseUuidR[RGR4RVR^RYtplannedtdateUTCtsectionPermalinkRQ((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pytlistCategorynsZ	

"
(H*,


 *%c
Cs“td|ƒidd6dd6}g}|jj|dƒrd|jj|dƒ\}}|rdyãttj|ƒƒ}t|ddƒxµ|ddD]¥}|d}|jj|ƒsÁq™n|jd	tƒrêd
|kr>dt	j
jjj
kr¹|jj|ƒ\}}|rä|jjj|dƒd
}d|krZ|jdƒrZ|d7}n||jjj|dƒd
7}|jdƒr¶|jidd6|jddƒd6ƒq¶qäqç|jd
dƒ}|jt|dtƒƒq>q™dt|jddƒƒkr™d|d|df}|ji|d6|d6ƒq™q™WWqatk
r]tƒqaXqdnx(tt|ƒƒD]}	d
||	d<qwW|S(Ns&SportDeutschland.getLinksForVideo [%s]sJMozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0s
User-Agents?text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8RREtassettvideost
livestreams.smil?Rsmeta base="(rtmp[^"]+?)"iR0t/svideo src="([^"]+?)"sSportDeutschland rtmpRPs&amp;t&s.m3u8?tcheckExttmp4tcontent_types%sx%stwidththeighttneed_resolve(RR+t
isValidUrlRARRBRCR1RfRRRRtvaluetphtgetSearchGroupst
startswithRRgtextendRtstrRDRtrangeRm(
R/RXtHTTP_HEADERt	videoUrlsRFRGR4tvideoUrlRPtidx((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pytgetLinksForVideo¥sF



 0&
cCsAtd|||fƒt|ƒ}||d<|j|jƒdS(NsMSportDeutschland.listSearchResult cItem[%s], searchPattern[%s] searchType[%s]R[(RR*RttcurrItem(R/RXt
searchPatternt
searchType((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pytlistSearchResultÎs
cCs^tdƒtj|||||ƒ|jjddƒ}|jjddƒ}td||fƒg|_d|kr“|j|jidd6ƒnÇd|kr²|j	|jƒn¨d|krÑ|j
|jƒn‰|dkrt|jƒ}|jit
d	6dd6ƒ|j|||ƒn=|d
krS|jidd6dd6dtd
ƒƒntƒdS(Ns$SportDeutschland.handleService startRPRR0sBSportDeutschland.handleService: ---------> name[%s], category[%s] RR!tsearch_next_pageR#R$RR^sType: (ssearchR‘(RRt
handleServiceRR1R2tcurrListtlistsTabR.RZRtR*RnRfRtlistsHistoryRR(R/tindextrefreshRŽRRPRRX((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyR’Ôs&
	*(t__name__t
__module__R%R7R?RHRORZRtRŒRR’(((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyR&s					7	)	tIPTVHostcBseZd„ZRS(cCstj|tƒtgƒdS(N(RR%RR-(R/((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyR%ïs(R˜R™R%(((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyRšís(srtmpsrtmp(R
s
HLS - m3u8(t7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRRt.Plugins.Extensions.IPTVPlayer.components.ihostRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRt3Plugins.Extensions.IPTVPlayer.libs.youtube_dl.utilsRt2Plugins.Extensions.IPTVPlayer.libs.urlparserhelperRtComponents.configRR	R
RRIt
simplejsonRBRDRRRRRRRš(((sS/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/hosts/hostsportdeutschland.pyt<module>s 
$		Ç