Fixed the audio duration in the menu.
If a custom audio is used in the DVD menu, it will last the duration of the custom audio, not only 30 seconds.
This commit is contained in:
parent
810495c0d7
commit
8a68f263c3
3 changed files with 10 additions and 10 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# History of versions #
|
||||
|
||||
* version 4.10.0 (2018-04-29)
|
||||
* Now, when using a custom audio in the menu, it will last the whole audio duration, not 30 seconds
|
||||
|
||||
* version 4.9.0 (2018-04-08)
|
||||
* Fixed a division by 0 when it is not possible to get the original aspect ratio
|
||||
* Added extra check for MSGFMT binary, needed to install Devede
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -81,7 +81,7 @@ except:
|
|||
setup(
|
||||
name='devedeng',
|
||||
|
||||
version='4.9.0',
|
||||
version='4.10.0',
|
||||
|
||||
description='A video DVD creator',
|
||||
long_description="A program that allows to create video DVDs",
|
||||
|
|
|
|||
|
|
@ -97,18 +97,15 @@ class dvd_menu(devedeng.interface_manager.interface_manager):
|
|||
self.store_ui(self.builder)
|
||||
cv = devedeng.converter.converter.get_converter()
|
||||
film_analizer = (cv.get_film_analizer())()
|
||||
(video, audio, length) = film_analizer.analize_film_data(
|
||||
self.background_music, True)
|
||||
if (video != 0):
|
||||
devedeng.message.message_window(
|
||||
_("The selected file is a video, not an audio file"), _("Error"))
|
||||
film_analizer.get_film_data(self.background_music)
|
||||
if (film_analizer.video_streams != 0):
|
||||
devedeng.message.message_window(_("The selected file is a video, not an audio file"), _("Error"))
|
||||
self.on_no_sound_clicked(None)
|
||||
elif (audio == 0):
|
||||
devedeng.message.message_window(
|
||||
_("The selected file is not an audio file"), _("Error"))
|
||||
elif (film_analizer.audio_streams == 0):
|
||||
devedeng.message.message_window(_("The selected file is not an audio file"), _("Error"))
|
||||
self.on_no_sound_clicked(None)
|
||||
else:
|
||||
self.sound_length = length
|
||||
self.sound_length = film_analizer.original_length
|
||||
|
||||
def update_preview(self, b=None):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue