Philipp Hörist pushed to branch nbxmpp_2.0 at gajim / python-nbxmpp
Commits: 0fe3b7dd by lovetox at 2020-12-29T22:20:52+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/0fe3b7dd7f23d9440fa924be7cdb9c091cb688a9 -- View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/0fe3b7dd7f23d9440fa924be7cdb9c091cb688a9 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