Fix error when duration is N/A
This commit is contained in:
parent
cf386691b0
commit
a84aea081b
5 changed files with 15 additions and 6 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# History of versions #
|
||||
|
||||
* version 4.18.0 (2023-12-17)
|
||||
* Fix stall when ffmpeg returns N/A as the time
|
||||
|
||||
* version 4.17.0 (2021-12-28)
|
||||
* Added support for videos with "rotate" tag
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -85,7 +85,7 @@ except:
|
|||
setup(
|
||||
name='devedeng',
|
||||
|
||||
version='4.17.0',
|
||||
version='4.18.0',
|
||||
|
||||
description='A video DVD creator',
|
||||
long_description="A program that allows to create video DVDs",
|
||||
|
|
|
|||
|
|
@ -598,8 +598,11 @@ class avconv(devedeng.avbase.avbase):
|
|||
parts = data[0][pos:pos2].split(":")
|
||||
t = 0.0
|
||||
for e in parts:
|
||||
t *= 60.0
|
||||
t += float(e)
|
||||
try:
|
||||
v = float(e)
|
||||
except:
|
||||
continue
|
||||
t = t * 60.0 + v
|
||||
t /= self.final_length
|
||||
self.progress_bar[1].set_fraction(t)
|
||||
self.progress_bar[1].set_text("%.1f%%" % (100.0 * t))
|
||||
|
|
|
|||
|
|
@ -590,8 +590,11 @@ class ffmpeg(devedeng.executor.executor):
|
|||
parts = data[0][pos:pos2].split(":")
|
||||
t = 0.0
|
||||
for e in parts:
|
||||
t *= 60.0
|
||||
t += float(e)
|
||||
try:
|
||||
v = float(e)
|
||||
except:
|
||||
continue
|
||||
t = t * 60.0 + v
|
||||
t /= self.final_length
|
||||
self.progress_bar[1].set_fraction(t)
|
||||
self.progress_bar[1].set_text("%.1f%%" % (100.0 * t))
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
[DEFAULT]
|
||||
depends: python-setuptools, python-urllib3, python-gobject2, python-cairo, gobject-introspection, gobject-introspection-runtime, gtk3, ffmpeg, mplayer, vlc, dvdauthor, mkisolinux, vcdimager, libvorbis
|
||||
depends: python-setuptools, python-urllib3, python-gobject, python-cairo, gobject-introspection, gobject-introspection-runtime, gtk3, ffmpeg, mplayer, vlc, dvdauthor, cdrkit, vcdimager, libvorbis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue