Fixed subtitles sync issues when sync debug is enable.

pull/1492/head v0.9.7-beta.8
morpheus65535 3 years ago
parent 360e0cfea1
commit 9372c0b821

@ -58,6 +58,8 @@ class SubSyncer:
logging.exception('BAZARR an exception occurs during the synchronization process for this subtitles: ' logging.exception('BAZARR an exception occurs during the synchronization process for this subtitles: '
'{0}'.format(self.srtin)) '{0}'.format(self.srtin))
else: else:
if settings.subsync.getboolean('debug'):
return result
if os.path.isfile(self.srtout): if os.path.isfile(self.srtout):
if not settings.subsync.getboolean('debug'): if not settings.subsync.getboolean('debug'):
os.remove(self.srtin) os.remove(self.srtin)

Loading…
Cancel
Save