From 7641502941453e87e58c76f4c83332b0fdee1141 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 25 Jun 2026 16:57:59 +0200 Subject: [PATCH] rn pattern --- .../management/commands/teleforma-import-conferences-4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-import-conferences-4.py b/teleforma/management/commands/teleforma-import-conferences-4.py index ba926714..ed35c863 100644 --- a/teleforma/management/commands/teleforma-import-conferences-4.py +++ b/teleforma/management/commands/teleforma-import-conferences-4.py @@ -29,7 +29,7 @@ class Command(BaseCommand): spacer = '_-_' media_formats = ['mp4', 'mp3'] image_formats = ['png', 'jpg'] - main_pattern = "_0.webm" + webm_pattern = "_0.webm" mp3_pattern = ".mp3-" def add_arguments(self, parser): @@ -44,7 +44,7 @@ class Command(BaseCommand): files.append(conf_dir + os.sep + file) if len(files) > 1: for file in files: - if self.main_pattern in file or self.mp3_pattern in file: + if self.webm_pattern in file or self.mp3_pattern in file: return file elif len(files) == 1: return files[0] -- 2.47.3