From 4cc552e54828a469bac50eff963ef9f0bf01eeb8 Mon Sep 17 00:00:00 2001 From: daTa Date: Wed, 8 Apr 2015 21:20:42 +0200 Subject: [PATCH] [MovieInfo] some adjustments, optimize some .png's --- src/MovieInfo.py | 29 +++++++++++++++-------------- src/img/key-green_line.png | Bin 1284 -> 503 bytes src/img/key_menu_line.png | Bin 1273 -> 872 bytes src/img/line_blue.png | Bin 1512 -> 1124 bytes src/img/starsbar_empty_10.png | Bin 863 -> 689 bytes src/img/starsbar_filled_10.png | Bin 1525 -> 1193 bytes 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/MovieInfo.py b/src/MovieInfo.py index 9192b3e0..88eb4062 100644 --- a/src/MovieInfo.py +++ b/src/MovieInfo.py @@ -438,20 +438,21 @@ def __init__(self, session, preview, moviename, previewCover=False, previewMode= }, -1) def save(self): - moviepath = os.path.splitext(self.spath)[0] - if self.isDirectory: - moviepath = moviepath + "/" + self.moviename - try: - txtpath = moviepath + ".txt" - if fileExists("/tmp/previewTxt.txt"): - shutil.copy2("/tmp/previewTxt.txt", txtpath) - except Exception, e: - print('[EMC] MovieInfo saveTxt exception failure: ', str(e)) + if self.page == 0 and self.spath is not None: + moviepath = os.path.splitext(self.spath)[0] + if self.isDirectory: + moviepath = moviepath + "/" + self.moviename + try: + txtpath = moviepath + ".txt" + if fileExists("/tmp/previewTxt.txt"): + shutil.copy2("/tmp/previewTxt.txt", txtpath) + except Exception, e: + print('[EMC] MovieInfo saveTxt exception failure: ', str(e)) - self.session.open(MessageBox, (_('Movie Information downloaded successfully!')), MessageBox.TYPE_INFO, 5) + self.session.open(MessageBox, (_('Movie Information downloaded successfully!')), MessageBox.TYPE_INFO, 5) - if config.EMC.movieinfo.coversave.value: - self.getPoster() + if config.EMC.movieinfo.coversave.value: + self.getPoster() def getPoster(self): moviepath = os.path.splitext(self.spath)[0] @@ -501,7 +502,7 @@ def ok(self): def pageUp(self): if self.page == 0: - if config.EMC.movieinfo.shownewversion.value: + if config.EMC.movieinfo.shownewversion.value and self.spath is not None: self["contenttxt"].pageUp() else: self["previewtext"].pageUp() @@ -510,7 +511,7 @@ def pageUp(self): def pageDown(self): if self.page == 0: - if config.EMC.movieinfo.shownewversion.value: + if config.EMC.movieinfo.shownewversion.value and self.spath is not None: self["contenttxt"].pageDown() else: self["previewtext"].pageDown() diff --git a/src/img/key-green_line.png b/src/img/key-green_line.png index aa6f73c11ef1d88cd2f1bda6c85ca3ba2ed58d7a..bb35f43fec9b497ffb8ccf0459b91fd11fdfad7e 100644 GIT binary patch delta 470 zcmV;{0V)233ikt$D}S+%3;baP0002GP)t-s3t%P&I~NRUDhN&=4}&xfcrXc7Arz}c z5}7>_l{^e@ED2a65tBO*k2wr%D-ee^4t+8Xdoc}iEf0k?4}dcejW`B97zj!o2~i*w zvPTPKCktpP5}Q62yi5_8Jrt=#6}UFVKm;xl5s^9vM1LC+oj((%Ljxxd6|+bb zs6!K^LIpMz6|_hSTqF&4FB76c6t6}Vw@DPNMHR6}7QRdswn-MdOBT9H7QIXtz)b@s z4i>*n7r{-F_8i^-008JoL_t&-({<3v5`r)g1W;T+MFkWPl|_S~Ajlp9F8}{qCbCqj z)IQ8%st>Q4d4J$|r*PwHTQ1t`!a80_V-cv%!kQXqI|(k=!z54BV&~t=GRuxtRUw4T zx~?IFPm+6=7dfBT6GBojO@wg&m}O;o^LIs>=K0}z36jJ<8`jKOsz6pGHs%GLiMWyG z4#Ja1L=456V-}BDiY$VqGqWgF(W)AhNk|Ro^)s!G&`&y8<0?8AW=*YyqXKa(t>U$y z?;~!jxtlN6h_Hry%u0&fj76(DRB!qxqHVp5f>ACq7Z7EoWz8wp8$DS|%D^A#Jpcdz M07*qoM6N<$f~|Y7f&c&j delta 1257 zcmVQa&mHWbANMmbaZufb#``kcXxMq zczAhvd3t(!dwY9)e0+UdCU$bZPl$;rve%F4^j%goHo&CSiu z&d$%z&(P4&(b3V;($dq@)6~?|)z#J3*4Ee8*Vx$D+1c6J+S=RO+uYpT-QC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_yXD;iWHakA&eOPfmZg%ft5Aqpw9re}Cc>I7bdq_CKlWMX-oZMB!_WSopsX{#S!BLSKB| Ef6GhNRsaA1 diff --git a/src/img/line_blue.png b/src/img/line_blue.png index 2582d0869ca8e339f2ea4e8bb54adfaf7fb554b7..a9c95261e36824ddb814746dfa7a80f1e84c792d 100644 GIT binary patch delta 1096 zcmV-O1h@O>3*-opD}S+%3;baP0004EP)t-s1!?>OGkgL)l>sSb03ApIJ(K_*O9WEL z1XIWaTG#<8WCU5*1X9KXTipd_^#oGK14^_5M5Y5im;*|)1WvvJIg0`~hXX{V0yBL9 zAyNS!P6I!h14gR?Fm(i2)CFJX0VG)kT;Kypt^qD_0VP}kD}QPMENlg3^95q;14yp{ zBUS}u@B>M)0yv2RG=K$N;sGXK0zQ@jFLMGhcLPJC0y267K%53@{{&9G1!3z1O}haq zX9QT*1W&*ORm}xv_W><#1Xa!hLZJgep8_|915367HG%_2tOZ@+1Xa`U|FgSyAnP44Bw;4+z`@-NFzkNM9Opai%eSMW!$Xt<(af5-U zH=DEBRDWu9W2sy&TkQ5sCXqNZnFwMzpN~e@a=8niPg$u{VlnVT@6pO_|;W`ot zg~Zirbv+QU`u(+9?FWb?8=!il4$}QZJ!Ac%Ytpp_wLzUWsx#6HUboxrbw}&5_Da_u zzN1dTW7u1t8MyX__wk(S2|w#Iud#pRY0CHFKYz_0cAffDs2=w6imwO#gyGBgLcOB3 zrB-;bq4ObMouDmcnAjJ3_kK>u^1T1iqhxvUF34PwP-Y&&*!-WL6}Tu ziGM^QlgZfa77Li@^5Vv7DwWD+vt~0-uQwRt@wnT)xpQ+Py}a~#Pm;;x*1lTpa5$Y> z?eX^A-B$o6olft{<$Erd$D>djeA3+CpQ=;>flVY58jTC#aQOE2>inF;M7S~o!pnDr zdfo^^%Lqa)D?(rpA}ov`1O|r)DT9rv27jBZ2B#71GMXsxWBtj!{ipS(^*XlRn7S;z zFzVp7v05YH3J0+&L}3bnLy{yhg@J*>5L6g}2$4dFFo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J=6kPQ|W+=e_P^it6KQJL$Qt#;rT0 zQL(NTr{*<^ejnI9+Pd8NTvm1V;W_2onLc#4N($Nf7-cd!I^Zx+tYi6ARX7mN)&(|j zCHcKrp$aPjLwhnkYdLI}qq11C_4}PyyiYvOvM6AG>p-aJ6eGt9mb6v*+RqCL6@es*YpJt!$NVa*bgLdLme59Y3;M85Fo%ZbgxK?(v(p!34CgHBoO5Bw z$#S`GnIW2x+aBQCa5C_&i(R=~e$X)sD6MMoKO|rEkg}syz3${M`11sUH`6HB0+NgW E1?N}Jwg3PC diff --git a/src/img/starsbar_empty_10.png b/src/img/starsbar_empty_10.png index 603de007d66a2a48735df6b82b0fb7ea053b22d1..5efdaec372f245c7ac2a85726c65763c1f5860aa 100644 GIT binary patch delta 658 zcmV;D0&V@@2C)T@D}S+%3;baP0003>P)t-s0001mX%!wA1wSzgGAIa_cNnOI8(&Kg zRzwbaVH28q7}2F6B^?HCR}qqP7c3(OUP=#uWfWvj5Ywk2n0Oco2LYXY8Hj5ZTu2W@ zH4Dq2APNWqO+5^mc^HRl6Qf@c-isv;j41)qKyjBXZcR1t}677-2ue`FNfts_G;3nv~1y_Fsg3j$zF z4>>IfkZ~6R0sx+U8R4-ccU}`>P7tSr8jf%l3kU*fQxQ8Z36yjfyObUn69ga`1#wvt zvWy&gUlR-o0)O(qCfuzf2L%D3ei^@)9?qj7dtnr*g&U7?7bYGC*{dRpZWbFA1cquA zw2mD@Gzt|F105Fy8WjY%ksSj90Crsy2nGQb5d`qPCg8Cn1Oow$Zx#;>0tN*En=3&0 z00001bW%=J06^y0W&i*I1xZ9fR9M5^*4I)3VGIS}gMW%$5$qkMNl~nT6+2bwy~8dn zTi*YcVP_UBPw*!fN#?uD&6xmNnf>@*Od~oug&6J?_77>HnB6|w*`W;pXwyGsBYpW#R<8CL^Cd=bv-7xxd7EaL>~(rc(KY9}k+#-;l<%QEWl zSp1t5m49=NX~a|T{Wo3}6t)rI-fBPb)YD}hfse26G4h=|_7RBodm1*Ms}vCOSbKe$ z0-_|0-dIHlP(YkmhrQKOzjP-Bgk=M8)XL?}MPPo50)jUhmTh)fURuyk&E+W|GHa_Q sHP6#Cxy&>LL~&(ZThp@=$2txGyu*|nybZ=B01E&B07*qoM6N<$g5QMe8~^|S literal 863 zcmeAS@N?(olHy`uVBq!ia0vp^mw;H5gBeJ&ta7LUQR$ApjtmUzPnffIy#(?lOI#yL zg7ec#$`gxH85~pclTsBta}(23gHjVyDhp4h+AuIMdIk7|xU#V__U4Q6^Dwb6GnT~) zKiH_u%*4RK#`s~cnwTKVj)}6}d1C#A;wxLFs}n`qvP91s35bnD2tRR%Yr(|{nO=`m>Al#MW>XAD@n6vg$PEv@m*h~WTwrT9U|C}DspAH zlDq`#q+;<2h2l-=qScAQpZ2R=T&nnRql%p&myR;~iWcem6cIr_=8kN!`E`<)mn-sc zGNt$n46^Pjz za>+@swq}X~!#tRC=29S)R}$nG{GXnHVF9a+F)%(AJzX3_BHXWD+gf(SLBQqWHKWRz z*Ux}K&i?=YvK1;f=U))Lx--}_UHL}lt@2gUy&8VqDtFgO%`J;4t$ey7Ym5JEH*soFx*#Xkzem^>bP0l+XkKqEC1? diff --git a/src/img/starsbar_filled_10.png b/src/img/starsbar_filled_10.png index 71adb1c71a40277735f40736df12cec2bc1f05e2..4c9b51fc44e9b1a829dea8b555b805f7cb5e0a83 100644 GIT binary patch delta 1166 zcmV;91abTI3#kc^D}S+%3;baP0008nP)t-s0000T8Vz}CH90mYucL8NQZV%L3Q9^X z^X?4u@d}xkIq~Nc^Xw4B!ZCk-L-XwrYil-7PAl=`634(V^5GKl<`y(G9%5iH^4$~j z;SKf02=~wj_RJ0S(iDY#Nm*7dP)sWZ1_kxS6w0I z3kwPN#|iYk6!xwl`paIQg-`OcHT=E&74*dv8Wjuo zt`Xd#Dhdh-^U@FV!V~ta6s(#s)4weCv=;Ti74*py4u1^|^U4$S(GK^qC)vg&_No^3 z$qxR(M+pfD`omKC$5;8jM-&qg`oK*2zDWDHHu<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