Skip to content

Commit

Permalink
Merge pull request #62 from daTa-deVil/master
Browse files Browse the repository at this point in the history
[MovieInfo] some adjustments, optimize some .png's
  • Loading branch information
madie66 committed Apr 8, 2015
2 parents 4a63357 + 4cc552e commit 073a417
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/MovieInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down
Binary file modified src/img/key-green_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/key_menu_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/line_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/starsbar_empty_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/starsbar_filled_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 073a417

Please sign in to comment.