From: Guillaume Pellerin Date: Mon, 22 Apr 2024 09:09:44 +0000 (+0200) Subject: avoid _2.webm image X-Git-Tag: 2.9.0~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=15fd09c6e345fb5340180eae9a72d5b795bb7130;p=teleforma.git avoid _2.webm image --- diff --git a/teleforma/management/commands/teleforma-import-conferences-2.py b/teleforma/management/commands/teleforma-import-conferences-2.py index d7c8574c..fc7fe016 100644 --- a/teleforma/management/commands/teleforma-import-conferences-2.py +++ b/teleforma/management/commands/teleforma-import-conferences-2.py @@ -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