Update indexa.py

This commit is contained in:
JotaChina 2024-07-25 15:43:54 -03:00 committed by GitHub
parent 516ac2132a
commit 8e1e5c3c15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -74,6 +74,11 @@ def process_mmps_in_folder(folder_path):
if not os.path.exists(mmpz_folder):
os.makedirs(mmpz_folder)
#caso não haja, criando a pasta dos arquivos wav
wav_folder = os.path.join(folder_path, 'wav')
if not os.path.exists(wav_folder):
os.makedirs(wav_folder)
#processamento dos arquivos
for file in mmp_files:
file_path = os.path.join(folder_path, file)
@ -98,7 +103,7 @@ def process_mmps_in_folder(folder_path):
print(f"Ocorreu um erro ao executar o comando: {e}")
file_name = file_name.split('.')
print(file_name[0])
lmms_wav_convert = f'lmms -r "{file_name[0]}.mmpz" -o "mmp/wav" -f wav'
lmms_wav_convert = f'lmms -r "{file_name[0]}.mmpz" -o "/wav" -f wav'
try:
#desabilitando os servidores gráficos
os.environ['QT_DEBUG_PLUGINS'] = '1'