diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-09-12 12:00:35 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-09-12 12:00:35 +0000 |
| commit | deaf3139671ce0aa53a741b2fece9fbe3fd98c4e (patch) | |
| tree | 189de4203d668d758953ce97bdd8d51a8d1ea951 /lib/python/Plugins/Extensions/DVDBurn/Process.py | |
| parent | 17cd8cc301444bb2c81b50c9e57f15ef1de0987a (diff) | |
| download | enigma2-deaf3139671ce0aa53a741b2fece9fbe3fd98c4e.tar.gz enigma2-deaf3139671ce0aa53a741b2fece9fbe3fd98c4e.zip | |
Path and template fixes
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/Process.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDBurn/Process.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py index 12d85b45..67654f61 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/Process.py +++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py @@ -345,6 +345,7 @@ def formatTitle(template, title, track): template = template.replace("$t", title.name) template = template.replace("$d", title.descr) template = template.replace("$c", str(len(title.chaptermarks)+1)) + template = template.replace("$A", str(title.audiotracks)) template = template.replace("$f", title.inputfile) template = template.replace("$C", title.channel) l = title.length @@ -524,7 +525,7 @@ def CreateAuthoringXML(job): authorxml.append(' <titles>\n') for i in range( nr_titles ): for audiotrack in job.project.titles[i].audiotracks: - authorxml.append(' <audio format="'+audiotrack[0]+'" lang="'+audiotrack[1]+'" />\n') + authorxml.append(' <audio lang="'+audiotrack[0][:2]+'" format="'+audiotrack[1]+'" />\n') chapters = ','.join(["%d:%02d:%02d.%03d" % (p / (90000 * 3600), p % (90000 * 3600) / (90000 * 60), p % (90000 * 60) / 90000, (p % 90000) / 90) for p in job.project.titles[i].chaptermarks]) title_no = i+1 title_filename = job.workspace + "/dvd_title_%d.mpg" % (title_no) |
