From: Guillaume Pellerin Date: Fri, 19 Sep 2025 12:29:50 +0000 (+0200) Subject: workaround for video production multi source bug X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c545689963d37516514519768fed220a5c618901;p=teleforma.git workaround for video production multi source bug --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 29f2cf3f..422a766a 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -620,6 +620,9 @@ class Conference(models.Model): try: videos = self.media.filter(type='mp4') if videos: + if len(videos) > 1: + # workaround for video production multi source bug + videos = videos.filter(file__in="_0.webm")[0] return videos[0] except Media.DoesNotExist: try: