diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2008-12-04 13:10:32 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2008-12-04 13:10:32 +0100 |
| commit | d1883acaa73750cb4c2707834dcbd2e73766b455 (patch) | |
| tree | 27f1b5c168c3854209fe6a33569604c5ecb31214 /lib/python/Plugins/Extensions | |
| parent | 58e983040ccc2e6a0bda18430342142f7932fd26 (diff) | |
| download | enigma2-d1883acaa73750cb4c2707834dcbd2e73766b455.tar.gz enigma2-d1883acaa73750cb4c2707834dcbd2e73766b455.zip | |
small cleanup
Diffstat (limited to 'lib/python/Plugins/Extensions')
| -rw-r--r-- | lib/python/Plugins/Extensions/MediaPlayer/plugin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py index c25af780..545f5f23 100644 --- a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py @@ -818,9 +818,10 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB 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 [".mp2", ".mp3", ".wav", ".ogg", "flac"] and not self.isAudioCD: + if ext not in audio_extensions and not self.isAudioCD: self.hide() else: needsInfoUpdate = True @@ -847,7 +848,7 @@ class MediaPlayer(Screen, InfoBarBase, InfoBarSeek, InfoBarAudioSelection, InfoB currref = self.playlist.getServiceRefList()[idx] text = currref.getPath() ext = text[-4:].lower() - if ext not in [".mp2", ".mp3", ".wav", ".ogg", "flac"] and not self.isAudioCD: + if ext not in audio_extensions and not self.isAudioCD: self.hide() else: needsInfoUpdate = True |
