aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-02 14:57:27 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-02 14:57:27 +0000
commit07c8a0395bd3df78c2c885b848f500c99b1c4407 (patch)
tree39a4c9994de4c1df38df3e6d5cbee3459e03a451 /lib/python/Screens
parent471b217e32f45b8ca085593f8f93735883e2be2a (diff)
downloadenigma2-07c8a0395bd3df78c2c885b848f500c99b1c4407.tar.gz
enigma2-07c8a0395bd3df78c2c885b848f500c99b1c4407.zip
add basic mkv inline ssa/ass subtitle support
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/Subtitles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Screens/Subtitles.py b/lib/python/Screens/Subtitles.py
index b1c4475e..31733d80 100644
--- a/lib/python/Screens/Subtitles.py
+++ b/lib/python/Screens/Subtitles.py
@@ -55,6 +55,14 @@ class Subtitles(Screen, ConfigListScreen):
self.list.append(getConfigListEntry(text+" TTX "+_("Page")+" %x%02x"%(x[3],x[2])+" "+LanguageCodes[x[4]][0], ConfigNothing(), x))
else:
self.list.append(getConfigListEntry(text+" TTX "+_("Page")+" %x%02x"%(x[3],x[2])+" "+x[4], ConfigNothing(), x))
+ elif x[0] == 2:
+ if x[4] == 'und': #undefined
+ self.list.append(getConfigListEntry(text+" subtitle stream %d " % x[1], ConfigNothing(), x))
+ else:
+ if LanguageCodes.has_key(x[4]):
+ self.list.append(getConfigListEntry(text+" subtitle stream %d " % x[1] +LanguageCodes[x[4]][0], ConfigNothing(), x))
+ else:
+ self.list.append(getConfigListEntry(text+" subtitle stream %d " % x[1] +x[4], ConfigNothing(), x))
# return _("Disable subtitles")
self["config"].list = self.list
self["config"].l.setList(self.list)