update audio extensions

pull/5/head
ChristopheSeux 2023-07-18 16:42:16 +02:00
parent 18f830157f
commit 884eefaf37
2 changed files with 9 additions and 1 deletions

View File

@ -18,7 +18,7 @@ SOUNDS = [('NONE', 'None', '', 0)]
EDIT_SUFFIXES = ['.xml', '.edl']
MOVIE_SUFFIXES = ['.mov', '.mp4']
SOUND_SUFFIXES = ['.mp3', '.aaf', '.flac', '.wav']
SOUND_SUFFIXES = ['.eac3', '.mka', '.ogg', '.mp3', '.oga', '.ac3', '.flac', '.aiff', '.wav', '.wma', '.aac', '.m4a', '.aif', '.mp2']
ASSET_ITEMS = []

View File

@ -655,10 +655,18 @@ class VSETB_OT_export_spreadsheet(Operator):
for col in worksheet.columns:
letter = col[0].column_letter
worksheet.column_dimensions[letter].auto_size = True
# Save the file
workbook.save(str(export_path))
# elif spreadsheet.format == 'xls':
# try:
# import xlwt
# except ModuleNotFoundError:
# self.report({'INFO'}, 'Installing openpyxl')
# openpyxl = install_module('xlwt')
elif spreadsheet.format == 'Clipboard':
csv_buffer = StringIO()