]> git.parisson.com Git - teleforma.git/commitdiff
avoid _2.webm image
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 09:09:44 +0000 (11:09 +0200)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 09:09:44 +0000 (11:09 +0200)
teleforma/management/commands/teleforma-import-conferences-2.py

index d7c8574ce410b237ad934d308d4e70abd10cf519..fc7fe0166bead0646ecd58aba33a55f009536582 100644 (file)
@@ -112,7 +112,7 @@ class Command(BaseCommand):
                             if not media.poster_file:
                                 for file in files:
                                     filename, extension = os.path.splitext(file)
-                                    if extension[1:] in self.image_formats and "_0.webm" in filename:
+                                    if extension[1:] in self.image_formats and not "_2.webm" in filename:
                                         media.poster_file = dir + os.sep + file
                                         break