Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python-nbxmpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
python-nbxmpp
Commits
586d8ed0
Commit
586d8ed0
authored
Dec 29, 2020
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tune: Bail out if there is no artist or title
parent
398153b1
Pipeline
#6933
passed with stages
in 5 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
nbxmpp/modules/tune.py
nbxmpp/modules/tune.py
+5
-0
No files found.
nbxmpp/modules/tune.py
View file @
586d8ed0
...
...
@@ -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