Commit 0fe3b7dd authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Tune: Bail out if there is no artist or title

parent bd0b2cd3
Pipeline #6937 passed with stages
in 4 minutes and 48 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)
pubsub_event = properties.pubsub_event._replace(data=data)'Received tune: %s - %s', properties.jid, data)
Supports Markdown
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