Fixed bug when adding several subtitles to the same movie
This commit is contained in:
parent
361240adc4
commit
0dc0d61811
3 changed files with 6 additions and 3 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
## History of versions ##
|
## History of versions ##
|
||||||
|
* version 4.8.2 (2016-09-24)
|
||||||
|
* Fixed a problem when adding several subtitles to the same movie (thanks to Rocco Barisci)
|
||||||
|
|
||||||
* version 4.8.1 (2016-09-05)
|
* version 4.8.1 (2016-09-05)
|
||||||
* Fixed a float value used for volume where it expected an integer
|
* Fixed a float value used for volume where it expected an integer
|
||||||
|
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -64,7 +64,7 @@ except:
|
||||||
setup(
|
setup(
|
||||||
name='devedeng',
|
name='devedeng',
|
||||||
|
|
||||||
version='4.8.1',
|
version='4.8.2',
|
||||||
|
|
||||||
description='A video DVD creator',
|
description='A video DVD creator',
|
||||||
long_description = "A program that allows to create video DVDs",
|
long_description = "A program that allows to create video DVDs",
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class subtitles_mux(devedeng.executor.executor):
|
||||||
self.duration = duration
|
self.duration = duration
|
||||||
self.text = _("Adding %(L)s subtitles to %(X)s") % {"X": os.path.basename(file_path), "L": subt_lang}
|
self.text = _("Adding %(L)s subtitles to %(X)s") % {"X": os.path.basename(file_path), "L": subt_lang}
|
||||||
|
|
||||||
out_xml = open(file_path+".xml","w")
|
out_xml = open(file_path+"_s"+str(stream_id)+".xml","w")
|
||||||
out_xml.write('<subpictures format="')
|
out_xml.write('<subpictures format="')
|
||||||
if pal:
|
if pal:
|
||||||
out_xml.write('PAL')
|
out_xml.write('PAL')
|
||||||
|
|
@ -83,7 +83,7 @@ class subtitles_mux(devedeng.executor.executor):
|
||||||
self.command_var.append(mode)
|
self.command_var.append(mode)
|
||||||
self.command_var.append("-s")
|
self.command_var.append("-s")
|
||||||
self.command_var.append(str(stream_id))
|
self.command_var.append(str(stream_id))
|
||||||
self.command_var.append(file_path+".xml")
|
self.command_var.append(file_path+"_s"+str(stream_id)+".xml")
|
||||||
self.stdin_file = file_path+".tmp"
|
self.stdin_file = file_path+".tmp"
|
||||||
self.stdout_file = file_path
|
self.stdout_file = file_path
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue