Add ignoring common indexing filetypes

This commit is contained in:
LightArrowsEXE 2019-09-11 14:46:23 +02:00
parent d6e1e67c9b
commit dfa20323ed

View file

@ -23,7 +23,7 @@ def main():
for f in filelist:
# TO-DO: Figure out a reliable way to only loop through audio files, but ignore the following three. Maybe messing with MIME recognition?
if not re.search(r'\.(wav|m4a|opus|flac)$', f):
if not re.search(r'\.(wav|m4a|opus|flac|lwi|ffindex)$', f):
print(f)
if args.codec in ["aac"]:
subprocess.call(["ffmpeg", "-loglevel", "panic", "-stats", "-i", f,"-vn", f"{os.path.splitext(f)[0]}.wav"])