move audio_extensions one level up. fixes http://www.dm8000-vip.de/forum/index.php...
authorFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 5 Dec 2008 20:26:45 +0000 (21:26 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 5 Dec 2008 20:26:45 +0000 (21:26 +0100)
lib/python/Plugins/Extensions/MediaPlayer/plugin.py

index 545f5f238e073913247946ee36056ad82b6ef202..9ab23e5f4663052829d831f6394de1e76fe84527 100644 (file)
@@ -805,6 +805,7 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
        
        def playEntry(self):
                if len(self.playlist.getServiceRefList()):
        
        def playEntry(self):
                if len(self.playlist.getServiceRefList()):
+                       audio_extensions = (".mp2", ".mp3", ".wav", ".ogg", "flac", "m4a")
                        needsInfoUpdate = False
                        currref = self.playlist.getServiceRefList()[self.playlist.getCurrentIndex()]
                        if self.session.nav.getCurrentlyPlayingServiceReference() is None or currref != self.session.nav.getCurrentlyPlayingServiceReference():
                        needsInfoUpdate = False
                        currref = self.playlist.getServiceRefList()[self.playlist.getCurrentIndex()]
                        if self.session.nav.getCurrentlyPlayingServiceReference() is None or currref != self.session.nav.getCurrentlyPlayingServiceReference():
@@ -818,7 +819,6 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB
                                text = self.getIdentifier(currref)
                                text = ">"+text
                                ext = text[-4:].lower()
                                text = self.getIdentifier(currref)
                                text = ">"+text
                                ext = text[-4:].lower()
-                               audio_extensions = (".mp2", ".mp3", ".wav", ".ogg", "flac", "m4a")
 
                                # FIXME: the information if the service contains video (and we should hide our window) should com from the service instead 
                                if ext not in audio_extensions and not self.isAudioCD:
 
                                # FIXME: the information if the service contains video (and we should hide our window) should com from the service instead 
                                if ext not in audio_extensions and not self.isAudioCD: