1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

Cleanup code for silent, 'File (%s) already exists.'

This commit is contained in:
dalgr 2018-03-13 21:43:35 +01:00
parent 62a59549e9
commit db0cf86866

View File

@ -157,12 +157,12 @@ def output(options, extension="mp4", openfd=True, mode="wb", **kwargs):
findexpisode(os.path.dirname(os.path.realpath(options.output)), options.service, os.path.basename(options.output)):
if extension in subtitlefiles:
if not options.force_subtitle:
if not (options.silent or options.silent_semi):
if not options.silent:
log.warn("File (%s) already exists. Use --force-subtitle to overwrite" % options.output)
return None
else:
if not options.force:
if not (options.silent or options.silent_semi):
if not options.silent:
log.warn("File (%s) already exists. Use --force to overwrite" % options.output)
return None
if openfd: