Commit 586d8ed0 authored by Philipp Hörist's avatar Philipp Hörist

Tune: Bail out if there is no artist or title

parent 398153b1
Pipeline #6933 passed with stages
in 5 minutes and 33 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment