aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-10-05 20:43:43 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-10-05 20:43:43 +0200
commit29eeffa0512e1ea22f1bbb2ae486c58e2e529ff6 (patch)
treef277d5ae6cd3d8ab1dfc949b65211a53ac6b91f5 /lib/python/Plugins
parent87f242184106eac9b58a27eb871d44170713c2c4 (diff)
parent5f565fabd83bad38dbd5d79e881743c0fb29dde1 (diff)
downloadenigma2-29eeffa0512e1ea22f1bbb2ae486c58e2e529ff6.tar.gz
enigma2-29eeffa0512e1ea22f1bbb2ae486c58e2e529ff6.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/Extensions/MediaPlayer/plugin.py5
-rw-r--r--lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
index c535e1b1..596f2d5a 100644
--- a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
+++ b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
@@ -241,7 +241,10 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
for x in self.playlist.list:
self.playlistIOInternal.addService(ServiceReference(x[0]))
if self.savePlaylistOnExit:
- self.playlistIOInternal.save(resolveFilename(SCOPE_CONFIG, "playlist.e2pls"))
+ try:
+ self.playlistIOInternal.save(resolveFilename(SCOPE_CONFIG, "playlist.e2pls"))
+ except IOError:
+ print "couldn't save playlist.e2pls"
if config.mediaplayer.saveDirOnExit.getValue():
config.mediaplayer.defaultDir.setValue(self.filelist.getCurrentDirectory())
config.mediaplayer.defaultDir.save()
diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py
index ba668f8b..a1522ddb 100644
--- a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py
+++ b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py
@@ -54,7 +54,7 @@ class Feedlist(MenuList):
def isValid(self):
l = self.l.getCurrentSelection()
- if l[0] == 0:
+ if not l or l[0] == 0:
return False
else:
return True