diff libervia/backend/plugins/plugin_xep_0339.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 4b842c1fb686
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0339.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_xep_0339.py	Wed Jun 19 18:44:57 2024 +0200
@@ -98,7 +98,6 @@
             assert application_data is not None
             application_data["msid"] = " ".join(parts)
 
-
     def _generate_sdp_content_trigger(
         self,
         session: dict,
@@ -109,7 +108,7 @@
         application_data: dict,
         app_data_key: str,
         media_data: dict,
-        media: str
+        media: str,
     ) -> None:
         """Generate "msid" and "ssrc" attributes"""
         if "msid" in media_data:
@@ -155,9 +154,7 @@
                 semantics = ssrc_group_elt["semantics"]
                 semantic_ids = media_data.setdefault("ssrc-group", {})[semantics] = []
                 for source_elt in ssrc_group_elt.elements(NS_JINGLE_RTP_SSMA, "source"):
-                    semantic_ids.append(
-                        int(source_elt["ssrc"])
-                    )
+                    semantic_ids.append(int(source_elt["ssrc"]))
             except (KeyError, ValueError) as e:
                 log.warning(
                     f"Error while parsing <ssrc-group>: {e}\n{ssrc_group_elt.toXml()}"