]> git.parisson.com Git - teleforma.git/commitdiff
fix records from bbb ae-docker ae-docker-dev
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 17 Feb 2025 11:14:18 +0000 (12:14 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 17 Feb 2025 11:14:18 +0000 (12:14 +0100)
teleforma/webclass/models.py

index 0ae0791e372b3f4cbf50db40e9e858c7b49d98d7..1b1890d8cf9f2acdfa47b2457312689189d148b1 100644 (file)
@@ -51,13 +51,14 @@ def get_records_from_bbb(**kwargs):
         for recording in recordings:
             # recording.prettyprint()
             format = {}
-            if server.api_version == '1':
-                format = recording.get('playback', {}).get('format', {})
-            else:
+            format = recording.get('playback', {}).get('format', {})
+            if isinstance(format, list):
                 formats = recording.get('playback', {}).get('format', [])
                 for format in formats:
                     if format.get('type') == 'presentation':
                         break
+            else:
+                format = recording.get('playback', {}).get('format', {})
             url = format.get('url')
             if url:
                 url = str(url)