aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-08-25 00:02:08 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-08-25 00:02:08 +0000
commit309f38ffddbc90495d0a1a2dd6d5042b633785b4 (patch)
tree1e04317be05758187ddd1bdf404b9c15eeba544a /lib/python
parente88b753942b68d5c4abca45abb36bb5563588157 (diff)
downloadenigma2-309f38ffddbc90495d0a1a2dd6d5042b633785b4.tar.gz
enigma2-309f38ffddbc90495d0a1a2dd6d5042b633785b4.zip
get and select current audio track
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index fd2e0e95..d7683cac 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1468,7 +1468,6 @@ class InfoBarAudioSelection:
n = audio and audio.getNumberOfTracks() or 0
keys = [ "red", "", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] + [""]*n
tlist = []
- print "tlist:", tlist
if n > 0:
self.audioChannel = service.audioChannel()
@@ -1487,8 +1486,8 @@ class InfoBarAudioSelection:
tlist.append((description, x))
- selectedAudio = tlist[0][1]
- tlist.sort(lambda x,y : cmp(x[0], y[0]))
+ selectedAudio = audio.getCurrentTrack()
+ tlist.sort(key=lambda x: x[0])
selection = 2
for x in tlist: