diff options
Diffstat (limited to '')
-rwxr-xr-x | convert.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -56,9 +56,8 @@ for file in sorted(os.listdir(sourcedir)): ext = [".mp4", ".mkv", ".webm"] if file.endswith(tuple(ext)): exist = False - if os.path.isfile(outdir+"/"+name+".mp3"): - if os.path.getsize(path_rm_end_slash(sourcedir)+"/"+file) == os.path.getsize(outdir+"/"+name+".mp3"): - print("File "+path_rm_end_slash(sourcedir)+"/"+name+".mp3 already exist. Use -y for overwrite.") + if os.path.isfile(outdir+"/"+name+".mp3") and arg == "-n": + print("File "+path_rm_end_slash(sourcedir)+"/"+name+".mp3 already exist. Use -y for overwrite.") else: print("Converting : "+file) count += 1 |