From: Guillaume Pellerin Date: Mon, 22 Apr 2024 06:17:02 +0000 (+0200) Subject: quick fix to avoid _2 video index (waiting for multiple cam merge) X-Git-Tag: 2.9.0~8 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=037a189ce81b9dfe41b358cd29859b3ca6306d3e;p=teleforma.git quick fix to avoid _2 video index (waiting for multiple cam merge) --- diff --git a/teleforma/management/commands/teleforma-import-conferences-2.py b/teleforma/management/commands/teleforma-import-conferences-2.py index d964bb7d..1a7bd5c7 100644 --- a/teleforma/management/commands/teleforma-import-conferences-2.py +++ b/teleforma/management/commands/teleforma-import-conferences-2.py @@ -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]