From: Guillaume Pellerin Date: Thu, 25 Jun 2026 14:51:06 +0000 (+0200) Subject: fix double mp3 file X-Git-Tag: 3.0.2~1^2~5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a1ec9fcff3d4094957b87d513b72a7792907a019;p=teleforma.git fix double mp3 file --- diff --git a/teleforma/management/commands/teleforma-import-conferences-4.py b/teleforma/management/commands/teleforma-import-conferences-4.py index ea3f9c47..ba926714 100644 --- a/teleforma/management/commands/teleforma-import-conferences-4.py +++ b/teleforma/management/commands/teleforma-import-conferences-4.py @@ -30,6 +30,7 @@ class Command(BaseCommand): media_formats = ['mp4', 'mp3'] image_formats = ['png', 'jpg'] main_pattern = "_0.webm" + mp3_pattern = ".mp3-" def add_arguments(self, parser): parser.add_argument('args', nargs='*') @@ -43,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: + if self.main_pattern in file or self.mp3_pattern in file: return file elif len(files) == 1: return files[0]