pull/1038/head
Louis Vézina 4 years ago
parent 37802e30cc
commit 30df4a8a2f

@ -94,12 +94,18 @@ class SubSyncer:
logging.debug('BAZARR FFmpeg used is %s', ffmpeg_exe) logging.debug('BAZARR FFmpeg used is %s', ffmpeg_exe)
self.ffmpeg_path = os.path.dirname(ffmpeg_exe) self.ffmpeg_path = os.path.dirname(ffmpeg_exe)
try:
result = run(self) result = run(self)
except Exception as e:
logging.error('BAZARR an exception occurs during the synchronization process for this subtitles: ' +
self.srtin)
else:
if result['sync_was_successful']: if result['sync_was_successful']:
message = "{0} subtitles synchronization ended with an offset of {1} seconds and a framerate scale factor" \ message = "{0} subtitles synchronization ended with an offset of {1} seconds and a framerate scale " \
" of {2} using {3} (0:{4}).".format(language_from_alpha3(srt_lang), result['offset_seconds'], "factor of {2} using {3} (0:{4}).".format(language_from_alpha3(srt_lang),
result['framerate_scale_factor'], using_what, result['offset_seconds'],
result['framerate_scale_factor'],
using_what,
self.reference_stream) self.reference_stream)
if media_type == 'series': if media_type == 'series':

Loading…
Cancel
Save