]> git.parisson.com Git - teleforma.git/commitdiff
quick fix to avoid _2 video index (waiting for multiple cam merge)
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 06:17:02 +0000 (08:17 +0200)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 06:17:02 +0000 (08:17 +0200)
teleforma/management/commands/teleforma-import-conferences-2.py

index d964bb7d8827745569d1b1c16474f94d332a6a65..1a7bd5c753d5cd4ed2ce9d498aed238346c95b9e 100644 (file)
@@ -51,7 +51,11 @@ class Command(BaseCommand):
                 name = os.path.splitext(filename)[0]
                 ext = os.path.splitext(filename)[1][1:]
 
-                if ext and (ext in self.original_format or ext in self.transcoded_formats) and name[0] != '.':
+                if ext \
+                    and (ext in self.original_format or ext in self.transcoded_formats) \
+                    and name[0] != '.' \
+                    and not "_2.webm" in name:
+
                     root_list = root.split(os.sep)
                     public_id = root_list[-1]
                     course = root_list[-2]