refresh playlist when adding playlist via filelist. when copying directory to playlis...
authorFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 7 Nov 2008 08:21:24 +0000 (09:21 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 7 Nov 2008 08:21:24 +0000 (09:21 +0100)
lib/python/Plugins/Extensions/MediaPlayer/plugin.py

index ed1a88747925e24d2dd16522e729c0fbbafb7c78..2233998c74bce7b7c4556bfc8002af97afc20daf 100644 (file)
@@ -632,7 +632,7 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
                        if x[0][1] == True: #isDir
                                if recursive:
                                        self.copyDirectory(x[0][0])
                        if x[0][1] == True: #isDir
                                if recursive:
                                        self.copyDirectory(x[0][0])
-                       else:
+                       elif filelist.getServiceRef().type != 4098:
                                self.playlist.addFile(x[0][0])
                self.playlist.updateList()
 
                                self.playlist.addFile(x[0][0])
                self.playlist.updateList()
 
@@ -646,6 +646,7 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
                                list = playlist.open(ServiceRef.getPath())
                                for x in list:
                                        self.playlist.addFile(x.ref)
                                list = playlist.open(ServiceRef.getPath())
                                for x in list:
                                        self.playlist.addFile(x.ref)
+                       self.playlist.updateList()
                else:
                        self.playlist.addFile(self.filelist.getServiceRef())
                        self.playlist.updateList()
                else:
                        self.playlist.addFile(self.filelist.getServiceRef())
                        self.playlist.updateList()