]> git.parisson.com Git - teleforma.git/commitdiff
Fix BBB preview url
authorYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 7 Feb 2022 12:27:49 +0000 (13:27 +0100)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 7 Feb 2022 12:27:49 +0000 (13:27 +0100)
teleforma/webclass/models.py

index 1c68af0e76c22d8b8b9eed3724940bdde98d872d..7f6c504f0c32a9a05ede90697b74869c52086d29 100644 (file)
@@ -61,7 +61,7 @@ def get_records_from_bbb(**kwargs):
                 'end': end,
                 'end_date': datetime.datetime.fromtimestamp(end),
                 'url': url,
-                'preview': str(recording.get('playback', {}).get('format', {}).get('preview', {}).get('images', {}).get('image', [])[0]),
+                'preview': str(recording.get('playback', {}).get('format', {}).get('preview', {}).get('images', {}).get('image', [])),
                 'state': str(recording['state']),
             }
             if recording['metadata'].get('periodid'):