diff --git a/nbxmpp/modules/tune.py b/nbxmpp/modules/tune.py index e054e3a828205b037e6511946d4f3d825b79235e..5eb0b07e41639bc9c74b41d4af0cc2d8011cb2f8 100644 --- a/nbxmpp/modules/tune.py +++ b/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)