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@sWddlmZmZddlmZddlmZmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZddlmZddlmZdd	lmZmZmZmZdd
lmZddlmZmZddl m!Z!dd
l"m#Z#m$Z$m%Z%ddl&Z&ddl'Z'ddd„ƒYZ(defd„ƒYZ)dS(iÿÿÿÿ(tSimpleAnimatedCovertCover(tTranslateTXT(tprintDBGtprintExct
GetIconDirteConnectCallbackt	E2PrioFix(tstrwithmeta(tDMHelper(tDownloaderCreator(tScreen(t
MessageBox(t
getDesktopteTimerteServiceReferenceteConsoleAppContainer(tconfig(t	ActionMaptHelpableActionMap(tLabel(t
fileExiststresolveFilenamet
SCOPE_PLUGINSNtIPTVSimpleAudioPlayercBs8eZd„Zdd„Zd„Zd„Zd„ZRS(cCs«i}idd6|_|jddƒ|jd<|jddƒ|jd<|jddƒ|jd<|jddƒ|jd<d|_d|_d|_t|_t|_	dS(	Nisbuffer-durationsdownload-buffer-pathtsring-buffer-max-sizeiiÿÿÿÿsbuffer-size(
tgstAdditionalParamstgetturitplayModetNonetconsoletFalset	isClosingtTruetstopped(tselftadditionalParams((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyt__init__#s				tloopc	CsØ||_||_tjjjj}|d|j}d|jkro|d|jd|jd|jd|jdf7}t|jƒ}t	j
|ƒ\}}x&|D]}|d|||f7}q¥Wd	|jkr€|jd	}d|krld
|krXtj
d|ƒ}|rf|d|jd
ƒ|jdƒ|jdƒ|jdƒf7}qfqi|d|7}qlq€nd|jd}tƒ|_t|jj|jƒ|_td|ƒ|jjt|ƒƒt|_dS(Ns "%s"s://s "%s" "%s"  "%s"  "%s" sdownload-buffer-pathsring-buffer-max-sizesbuffer-durationsbuffer-sizes	 "%s=%s" t
http_proxyt@s#([^:]+?://)([^:]+?):([^@]+?)@(.+?)$s( "proxy=%s" "proxy-id=%s" "proxy-pw=%s" iiiis "proxy=%s" sexteplayer3 "%s"s > /dev/nulls#IPTVSimpleAudioPlayer.start cmd[%s](RRRtpluginst
iptvplayert
gstplayerpathtvalueRRR	tgetDownloaderParamFromUrltmetatretsearchtgroupRRRt	appClosedt_playerFinishedtconsole_appClosed_connRtexecuteRR R#(	R$Rtmodet
gstplayerPathtcmdttmpturlt
httpParamstkey((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pytstart2s0		6

EcCsQtd|ƒ|jrdS|jdkrM|jrM|j|j|jƒndS(Ns/IPTVSimpleAudioPlayer.eplayer3Finished code[%r]R'(RR!RR#R>R(R$tcode((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR4Ms
	cCs0d|jkrdSt|_|jjdƒdS(Nsq
(RRR"R#twrite(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pytstopRs	cCsUt|_d|jkrQ|jƒtjdƒ|jjƒd|_d|_ndS(Ni(	R"R!RRRAttimetsleept	sendCtrlCR5(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pytcloseWs	


	(t__name__t
__module__R&R>R4RARE(((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR"s
			tIPTVPicturePlayerWidgetcBsãeZdZedƒjƒjƒZedƒjƒjƒZdZ	dZ
dZdZeZ
dZedZedZeeedZee	dZeee
dZeedZeZdZeeZdZdZedeefƒd	eee	e
eee
eeeeeeeeeeefZid
„Zd„Zd„Zd
„Zd„Z d„Z!e"d„Z#d„Z$e%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+id„Z,d„Z-d„Z.d„Z/d„Z0RS(iiixi€iPiii
s,[IPTVPicturePlayerWidget] desktop size %dx%ds
        <screen name="IPTVPicturePlayerWidget"  position="center,center" size="%d,%d" title="IPTV Picture Player...">
         <widget name="status"     size="%d,%d"   position="%d,%d"  zPosition="5" valign="center" halign="center"  font="Regular;21" backgroundColor="black" transparent="1" /> #foregroundColor="white" shadowColor="black" shadowOffset="-1,-1"
         <widget name="console"    size="%d,%d"   position="%d,%d"  zPosition="5" valign="center" halign="center"  font="Regular;21" backgroundColor="black" transparent="1" />
         <widget name="icon"       size="%d,%d"   position="%d,%d"  zPosition="4" transparent="1" alphatest="on" />
         <widget name="picture"    size="%d,%d"   position="%d,%d"  zPosition="6" transparent="1" alphatest="on" />
        </screen>cCsº||_tj||ƒt|_||_ytjj|dƒ|_	Wn!t
k
rjd|_	tƒnXitd6|_|jj
|ƒ||_||_t|ƒjjddƒ|_tddddd	gi|jd
6|jd6|jd6|jd
6|jd6|jd6dƒ|d<tƒ|d<tƒ|d<tƒ|d<tƒ|d<g}x5td|jdƒD]}|jtd|ƒƒqmW|dj |ƒt!ƒ|_"t|_#|jdrñt$|_%t&|j"j'|j(ƒ|_)d|_*n$t&|j"j'|j+ƒ|_)d|_*t,|jƒ|_-|j.j|j/ƒ|j0j|j1ƒt|_2ddg|_3d|_4t|_5t6|jƒr­t6t7j8j9j:j;ƒr­t<ƒ|_=n	d|_=dS(Ns.iptv_buffering.jpgRtseq_modetiptv_audio_urltIPTVAlternateVideoPlayertMoviePlayerActionstMediaPlayerActionst
WizardActionstDirectionActionstleavePlayertplaytpausetexittbacktokiÿÿÿÿtactionststatusRticontpictureis/buffering/buffering_%d.pngièi
idt_0t_1ii'(?tsessionRR&R t
onStartCalledt
recordingPathtostpathtjointfilePatht	ExceptionRt	addParamstupdateR;tpictureTitleRR/RtaudioUrlRtkey_exittkey_playt	key_pausetkey_okRRRtrangetNUM_OF_ICON_FRAMEStappendRt
loadFramesRt	mainTimertmainTimerEnabledR"tcanAutoCloseRttimeouttcloseAfterTimeouttmainTimer_conntmainTimerIntervalt
updateDisplayR
t
downloadertonCloset!_IPTVPicturePlayerWidget__onClosetonShowtdoStarttautoRefreshtrefreshPostfixestrefreshCountt
refreshingtlenRR*R+R,R-RtaudioPlayerR(R$R\R;tpathForRecordingsRfRdtframestidx((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR&–sb			
			










	
					'cCstdƒdS(NsFIPTVPicturePlayerWidget.__del__ --------------------------------------(R(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyt__del__ÚscCs“tdƒd|jkr)|jjƒn|jƒd|jkrjy|jjƒWqjtk
rfqjXnd|_d|_|j	j
|jƒdS(NsFIPTVPicturePlayerWidget.__onClose ------------------------------------(RRR‚REtonEndRpRARcRuRytremoveRz(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyt	__onCloseÝs


		cCs"|j|j|jt|jƒS(N(RbR~RR(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyt_getDownloadFilePathêscCs|jr|jƒndS(N(RrRE(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRtís	cCs	|djƒ|dj|jƒ|djtdƒƒ|jƒ|jjdƒr±|jd|_|djtdƒƒd|dj|j|j	d	ƒkr|j	ƒqnT|j
rÐ|j
j|jƒn5|j
j|jttd
ƒ|jdtjdd
ƒdS(sk
            this method is called once like __init__ but in __init__ we cannot display MessageBox
        RYRRWs--sfile://is++iÿÿÿÿt s0Downloading cannot be started.
 Invalid URI[%s].ttypeRsi
N(thidetsetTextRft_t
_cleanedUpR;t
startswithRbtdecodeCovertdecodePictureEndRxtisWorkingCorrectlyt_startDownloaderR\topenWithCallbackRERt
TYPE_ERROR(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pytonStartñs
%	cCsµ|jdr'|jj|jtƒdS|js6|r¨t|_t|jƒ|_	t
j|jƒ\}}|j	j|j
ƒ|j	j||jƒ|ƒ|jtƒn	t|_dS(NRI(RdRpR>RvR"R}R€R
R;RxR	R.tsubscribeFor_Finisht
downloaderEndRŠtsetMainTimerStsR (R$tforceR;tdownloaderParams((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyt_doStarts
	cCsa|r|jtƒnG|jj|jttdƒ|jjƒ|j	ƒfdtj
ddƒdS(NsQDownloading cannot be started.
 Downloader [%s] not working properly.
 Status[%s]RŒRsi
(RžR"R\R–RERRRxtgetNametstripR—(R$tststreason((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR•scCse|jtƒ|jrN|jj|jƒ|j}d|_|jƒd}n|ra|jƒndS(N(R›R RxtunsubscribeFor_FinishRšRt	terminateR(R$twithCleanUpRx((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR‡s
			
	cCs|jdƒdS(NRh(RE(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRh"scCs‚|jdrt|_dS|jr~|jjdƒr~d|jkr\|jj|j	ƒnt
|_|js~|jƒq~ndS(NRIsfile://(
RdR RrR}R;R‘RR‚R>RgR"R€Rž(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRi%s
			cCsR|jdrt|_dS|jrNd|jkrB|jjƒnt|_ndS(NRI(RdR RrR}RR‚RA(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRj/s
		cCs>|jdrt|_dS|jr0|jƒn
|jƒdS(NRI(RdR RrR}RjRi(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRk7s
		
cCsÝd|jkrÙ|jtƒtjj|kr}|djtdƒƒd|dj	|j
ƒ|jdƒkrÖ|jƒqÖqÙd|jkrÌ|j
j|jttdƒ|jd|d	tjd
dƒn|jƒndS(NRWs++iÿÿÿÿRYR‹isDownloading file [%s] problem.s sts[%r]RŒRsi
(RRxR‡R R	tSTSt
DOWNLOADEDRŽRR’RŠR“RR\R–RERR;R—Rž(R$RW((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRš>s
(@cCsýtdƒd|jddƒkrld|jkrâ|jj|jttdƒ|j	dtj
ddƒqânv|jd7_|d	jƒ|d
jƒ|djƒ|dj|jddƒ|jd
|j	ƒƒ|dj
ƒ|jtƒ|jƒdS(Ns(IPTVPicturePlayerWidget.decodePictureEndtPixmapisDecode file [%s] problem.RŒRsi
iRWRRXRYtFileName(RRRRR\R–RERRRbR—RtupdatePixmaptshowR›R Rž(R$tret((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR“Is
;/
cCs‡ya|r>|js`|jj|jƒt|_|jƒq`n"|jr`|jjƒt|_nWntk
r‚t	d|ƒnXdS(Ns<IPTVPicturePlayerWidget.setMainTimerSts status[%r] EXCEPTION(
RqRpR>RvR"RwRAR RcR(R$R>((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR›Ws			

cCs3tdƒ|js!tdƒdS|djƒdS(NRws%updateDisplay aborted - timer stoppedRX(RRqt	nextFrame(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRwes
	
cCscx\|jD]Q}|j|}t|ƒr
ytj|ƒWq[tk
rWtdƒq[Xq
q
WdS(Ns(Problem with removing old buffering file(R~RbRR_RˆRcR(R$titemRb((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRms

cCs6|jj|jƒ|js2t|_|jƒndS(N(R{RˆR|R]R"R˜(R$((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyR|ts		(1RFRGRmR
tsizetwidthtsz_wtheighttsz_hts_wts_hti_wti_htc_wtc_htp_wtp_htstart_yts_xts_yti_xti_ytc_xtc_ytp_xtp_yRtskinR&R†RzRŠRtR˜R RžR•R"R‡RhRiRjRkRšR“R›RwRR|(((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyRHbsZ


	D		
						
						((*t.Plugins.Extensions.IPTVPlayer.components.coverRRt7Plugins.Extensions.IPTVPlayer.components.iptvplayerinitRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtoolsRRRRRt-Plugins.Extensions.IPTVPlayer.tools.iptvtypesRt+Plugins.Extensions.IPTVPlayer.iptvdm.iptvdhR	t:Plugins.Extensions.IPTVPlayer.iptvdm.iptvdownloadercreatorR
tScreens.ScreenRtScreens.MessageBoxRtenigmaR
RRRtComponents.configRtComponents.ActionMapRRtComponents.LabelRtTools.DirectoriesRRRR_RBRRH(((sU/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/components/iptvpictureplayer.pyt<module>s ("@