aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2008-11-03 09:01:50 +0100
committerAndreas Oberritter <obi@saftware.de>2008-11-06 01:47:04 +0100
commit58fe3de03d974c022df060acdf5d0e3dbc5bac90 (patch)
treee351efb89de2f87f0c14562832fcb5c089df9e0b /lib/python/Plugins/Extensions
parent8e25f9be28536bf4bfde187ad7a257ae463b749a (diff)
downloadenigma2-58fe3de03d974c022df060acdf5d0e3dbc5bac90.tar.gz
enigma2-58fe3de03d974c022df060acdf5d0e3dbc5bac90.zip
user correct playlist parser from dict
Diffstat (limited to 'lib/python/Plugins/Extensions')
-rw-r--r--lib/python/Plugins/Extensions/MediaPlayer/plugin.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
index 841ad614..ed1a8874 100644
--- a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
+++ b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
@@ -592,12 +592,13 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
def PlaylistSelected(self,path):
if path is not None:
self.clear_playlist()
- self.playlistIOInternal = PlaylistIOInternal()
- list = self.playlistIOInternal.open(path[1])
- if list:
+ extension = path[0].rsplit('.',1)[-1]
+ if self.playlistparsers.has_key(extension):
+ playlist = self.playlistparsers[extension]()
+ list = playlist.open(path[1])
for x in list:
self.playlist.addFile(x.ref)
- self.playlist.updateList()
+ self.playlist.updateList()
def delete_saved_playlist(self):
listpath = []