diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-09-15 10:40:30 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-09-15 10:40:30 +0000 |
| commit | 7b8d03106f28c627bc5bdcd89fe9e60cf48cab88 (patch) | |
| tree | 0eed898b69f6c536b8e907afba3cc8953f74c03e /lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py | |
| parent | a4cd8d8b1f334557458b62a743d7a1fdab151a45 (diff) | |
| download | enigma2-7b8d03106f28c627bc5bdcd89fe9e60cf48cab88.tar.gz enigma2-7b8d03106f28c627bc5bdcd89fe9e60cf48cab88.zip | |
disallow non-mpeg2 video streams for dvdburn
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py b/lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py index 75a53a08..016eb71f 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py +++ b/lib/python/Plugins/Extensions/DVDBurn/TitleCutter.py @@ -1,6 +1,6 @@ from Plugins.Extensions.CutListEditor.plugin import CutListEditor from Components.ServiceEventTracker import ServiceEventTracker -from enigma import iPlayableService +from enigma import iPlayableService, iServiceInformation class TitleCutter(CutListEditor): def __init__(self, session, t): @@ -10,17 +10,15 @@ class TitleCutter(CutListEditor): self.t = t self.__event_tracker = ServiceEventTracker(screen=self, eventmap= { - iPlayableService.evUpdatedInfo: self.getAudioTracks, + iPlayableService.evUpdatedInfo: self.getPMTInfo, iPlayableService.evCuesheetChanged: self.refillList }) self.onExecBegin.remove(self.showTutorial) - def getAudioTracks(self): + def getPMTInfo(self): service = self.session.nav.getCurrentService() audio = service and service.audioTracks() n = audio and audio.getNumberOfTracks() or 0 - print "self.t", self.t - print "self.t.audiotracks", self.t.audiotracks if n > 0: for x in range(n): i = audio.getTrackInfo(x) @@ -29,7 +27,11 @@ class TitleCutter(CutListEditor): if description == "MPEG": description = "MP2" self.t.audiotracks.append((language, description)) - print "audiotracks", self.t.audiotracks + print "[DVDBurn getAudioTracks]", self.t.audiotracks + sVideoType = service.info().getInfo(iServiceInformation.sVideoType) + print "[DVDBurn getVideoType]", sVideoType + if sVideoType != 0: + self.close(False) def exit(self): self.session.nav.stopService() |
