diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2008-11-19 09:58:34 +0100 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2008-11-19 09:58:34 +0100 |
| commit | ac28912f03ba943cce61b30df2014f06dd499ba7 (patch) | |
| tree | 66739e064913e18af69f28bd5172430cdfa46215 /lib/python | |
| parent | 7ce0a84a10b827f2a9cd0a123f759e16e1375b70 (diff) | |
| download | enigma2-ac28912f03ba943cce61b30df2014f06dd499ba7.tar.gz enigma2-ac28912f03ba943cce61b30df2014f06dd499ba7.zip | |
fix filelist crash, add necessary import for hotplug
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/Extensions/PicturePlayer/plugin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Plugins/Extensions/PicturePlayer/plugin.py b/lib/python/Plugins/Extensions/PicturePlayer/plugin.py index aeca12dc..e9da3e2f 100644 --- a/lib/python/Plugins/Extensions/PicturePlayer/plugin.py +++ b/lib/python/Plugins/Extensions/PicturePlayer/plugin.py @@ -1,7 +1,7 @@ from enigma import ePicLoad, eTimer, getDesktop from Screens.Screen import Screen -from Tools.Directories import resolveFilename, pathExists, SCOPE_MEDIA +from Tools.Directories import resolveFilename, pathExists, fileExists, SCOPE_MEDIA from Plugins.Plugin import PluginDescriptor from Components.Pixmap import Pixmap, MovingPixmap @@ -91,8 +91,9 @@ class picshow(Screen): def showThumb(self): if not self.filelist.canDescent(): - if self.picload.getThumbnail(self.filelist.getCurrentDirectory() + self.filelist.getFilename()) == 1: - self.ThumbTimer.start(500, True) + if self.filelist.getCurrentDirectory() and self.filelist.getFilename(): + if self.picload.getThumbnail(self.filelist.getCurrentDirectory() + self.filelist.getFilename()) == 1: + self.ThumbTimer.start(500, True) def selectionChanged(self): if not self.filelist.canDescent(): |
