git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88b753
)
get and select current audio track
author
Felix Domke
<tmbinc@elitedvb.net>
Sat, 25 Aug 2007 00:02:08 +0000
(
00:02
+0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sat, 25 Aug 2007 00:02:08 +0000
(
00:02
+0000)
lib/python/Screens/InfoBarGenerics.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/InfoBarGenerics.py
b/lib/python/Screens/InfoBarGenerics.py
index fd2e0e95e2d295edcaf66e38d43e13e2a4904bb7..d7683cac4de805a17e3841e8ab89af976859c4a2 100644
(file)
--- 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: