aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
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()