Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
586d8ed0 by lovetox at 2020-12-29T21:54:34+01:00
Tune: Bail out if there is no artist or title

- - - - -


1 changed file:

- nbxmpp/modules/tune.py


Changes:

=====================================
nbxmpp/modules/tune.py
=====================================
@@ -64,6 +64,11 @@ class Tune(BaseModule):
             tune_dict[attr] = tune_node.getTagData(attr)
 
         data = TuneData(**tune_dict)
+        if data.artist is None and data.title is None:
+            self._log.warning('Missing artist or title: %s %s',
+                              data, properties.jid)
+            return
+
         pubsub_event = properties.pubsub_event._replace(data=data)
         self._log.info('Received tune: %s - %s', properties.jid, data)
 



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/586d8ed074e1e5f62eb1bde3edb28a1c9a769728

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/586d8ed074e1e5f62eb1bde3edb28a1c9a769728
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to