]> git.parisson.com Git - teleforma.git/commitdiff
rn pattern
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 25 Jun 2026 14:57:59 +0000 (16:57 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 25 Jun 2026 14:57:59 +0000 (16:57 +0200)
teleforma/management/commands/teleforma-import-conferences-4.py

index ba9267145d05bdabeb8a33cc402b92ab2953a78a..ed35c863121006b8219c8d18d76f4bfa61587035 100644 (file)
@@ -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]