From c00041005f28d18f6431bf586aedab8d80ffafd0 Mon Sep 17 00:00:00 2001 From: Clement Ducarteron Date: Tue, 4 Apr 2023 12:28:31 +0200 Subject: [PATCH] =?UTF-8?q?fix=20"exclude=20audio"=20=C3=A0=20l'import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constants.py | 2 +- sequencer_utils.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/constants.py b/constants.py index 69833c9..7c842c8 100644 --- a/constants.py +++ b/constants.py @@ -18,7 +18,7 @@ SOUNDS = [('NONE', 'None', '', 0)] EDIT_SUFFIXES = ['.xml', '.edl'] MOVIE_SUFFIXES = ['.mov', '.mp4'] -SOUND_SUFFIXES = ['.mp3', '.aaf', '.flac'] +SOUND_SUFFIXES = ['.mp3', '.aaf', '.flac', '.wav'] CONFIG_DIR = Path(appdirs.user_config_dir(__package__.split('.')[0])) PREVIEWS_DIR = CONFIG_DIR / 'thumbnails' diff --git a/sequencer_utils.py b/sequencer_utils.py index f3d05ad..7fc6331 100644 --- a/sequencer_utils.py +++ b/sequencer_utils.py @@ -6,6 +6,7 @@ import re from bpy.app.handlers import persistent from pathlib import Path from vse_toolbox.bl_utils import get_scene_settings, get_strip_settings +from vse_toolbox.constants import SOUND_SUFFIXES def get_strips(channel=0, selected_only=False): @@ -124,7 +125,7 @@ def import_edit(filepath, adapter="cmx_3600", clean_sequencer=False): continue # FIXME Exclude Audio for now - if any(child.name.endswith(ext) for ext in ('.wav', '.mp3')): + if any(child.name.lower().endswith(ext) for ext in SOUND_SUFFIXES): channel = get_channel('Audio') continue