aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-07-01 10:57:41 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-07-01 10:57:41 +0200
commit9cbc851697f2ecea9441244e31a1ff8d40fcebdf (patch)
tree85d1ef2f2fe63fc6e0b46d7ba5f28bd38fb2c99c /lib/python/Plugins/Extensions/DVDBurn
parent8e35a12e847196865cb09d15a06f477660c8b1fd (diff)
downloadenigma2-9cbc851697f2ecea9441244e31a1ff8d40fcebdf.tar.gz
enigma2-9cbc851697f2ecea9441244e31a1ff8d40fcebdf.zip
DVDBurn: parse new projectx version (0.90.4.00.b30) audio PID messages correctly
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/Process.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py
index 74ffbde7..5f22f139 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/Process.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py
@@ -109,10 +109,11 @@ class DemuxTask(Task):
def processOutputLine(self, line):
line = line[:-1]
+ #print "[DemuxTask]", line
MSG_NEW_FILE = "---> new File: "
MSG_PROGRESS = "[PROGRESS] "
- MSG_NEW_MP2 = "--> MPEG Audio (0x"
- MSG_NEW_AC3 = "--> AC-3/DTS Audio on PID "
+ MSG_NEW_MP2 = "++> Mpg Audio: PID 0x"
+ MSG_NEW_AC3 = "++> AC3/DTS Audio: PID 0x"
if line.startswith(MSG_NEW_FILE):
file = line[len(MSG_NEW_FILE):]
@@ -123,7 +124,10 @@ class DemuxTask(Task):
progress = line[len(MSG_PROGRESS):]
self.haveProgress(progress)
elif line.startswith(MSG_NEW_MP2) or line.startswith(MSG_NEW_AC3):
- self.currentPID = str(int(line.rstrip()[-6:].rsplit('0x',1)[-1],16))
+ try:
+ self.currentPID = str(int(line.split(': PID 0x',1)[1].split(' ',1)[0],16))
+ except ValueError:
+ print "[DemuxTask] ERROR: couldn't detect Audio PID (projectx too old?)"
def haveNewFile(self, file):
print "[DemuxTask] produced file:", file, self.currentPID