This commit is contained in:
Ninnjah 2020-12-14 00:18:21 +03:00 committed by GitHub
parent 4718ac55aa
commit cb8941b97c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,8 +209,8 @@ def get_files(dir_, config):
name = os.path.join(dir_, i)
if name == None:
sounds_list.append(i)
elif os.path.splitext(name)[1] in ['.mp3', '.m4a', '.wav']:
sounds_list.append(name)
elif os.path.splitext(i)[1] in ['.mp3', '.m4a', '.wav']:
sounds_list.append(i)
else:
sounds_list_cat = [os.path.join(dir_, i)]
for x in os.listdir(os.path.join(dir_, i)):