aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-14 21:49:09 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-14 21:49:09 +0000
commit759a94e910f4f45d11aac2635fc0b6df1149cd3c (patch)
tree775cc9355cd6fae3bfd09e0b3dd5040ae4fd97f2 /lib/python
parent9764dd91d335a6e02384029c90911f1d500ffa97 (diff)
downloadenigma2-759a94e910f4f45d11aac2635fc0b6df1149cd3c.tar.gz
enigma2-759a94e910f4f45d11aac2635fc0b6df1149cd3c.zip
audio selection - fake
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index 6615d6f1..9076942b 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -132,6 +132,8 @@ class InfoBar(Screen):
"seekFwd": self.seekFwd,
"seekBack": self.seekBack,
+
+ "audioSelection": self.audioSelection,
})
# self["okbutton"] = Button("mainMenu", [self.mainMenu])
@@ -259,7 +261,7 @@ class InfoBar(Screen):
def quit(self):
# self.session.open(Standby, self)
configfile.save()
- quitMainloop()
+ quitMainloop(0)
def stopCurrentRecording(self):
print "remove entry"
@@ -321,3 +323,12 @@ class InfoBar(Screen):
def seekBack(self):
self.doSeek(-1, 10000)
+
+ def audioSelection(self):
+ service = self.session.nav.getCurrentService()
+ audio = service.audioTracks()
+ n = audio.getNumberOfTracks()
+ print "AUDIO TRACKS:"
+ for x in range(n):
+ i = audio.getTrackInfo(x)
+ print i.getDescription()