Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
0fe3b7dd
Commit
0fe3b7dd
authored
Dec 29, 2020
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
nbxmpp/modules/tune.py
View file @
0fe3b7dd
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment