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/0fe3b7dd7f23d9440fa924be…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/0fe3b7dd7f23d9440fa924be…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch nbxmpp_2.0 at gajim / python-nbxmpp
Commits:
bd0b2cd3 by lovetox at 2020-12-29T22:20:11+01:00
Update __init__.py
- - - - -
1 changed file:
- nbxmpp/__init__.py
Changes:
=====================================
nbxmpp/__init__.py
=====================================
@@ -4,4 +4,4 @@ from .protocol import *
gi.require_version('Soup', '2.4')
-__version__ = "1.99.0"
+__version__ = "2.0.0"
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/bd0b2cd32030e23b6902dada…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/bd0b2cd32030e23b6902dada…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
5b7540c6 by lovetox at 2020-12-29T22:19:39+01:00
Update __init__.py
- - - - -
1 changed file:
- nbxmpp/__init__.py
Changes:
=====================================
nbxmpp/__init__.py
=====================================
@@ -4,4 +4,4 @@ from .protocol import *
gi.require_version('Soup', '2.4')
-__version__ = "1.99.0"
+__version__ = "3.0.0-dev1"
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5b7540c6bcefc3bdc9fb6c0f…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5b7540c6bcefc3bdc9fb6c0f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
586d8ed0 by lovetox at 2020-12-29T21:54:34+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/586d8ed074e1e5f62eb1bde3…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/586d8ed074e1e5f62eb1bde3…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ef339e87 by lovetox at 2020-12-29T21:52:09+01:00
Don’t return None on format_*() calls
Fixes #10235
- - - - -
1 changed file:
- gajim/gtk/util.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
@@ -554,9 +554,6 @@ def get_account_mood_icon_name(account):
def format_activity(activity, subactivity, text):
- if activity is None:
- return None
-
if subactivity in ACTIVITIES[activity]:
subactivity = ACTIVITIES[activity][subactivity]
activity = ACTIVITIES[activity]['category']
@@ -586,8 +583,6 @@ def get_account_activity_icon_name(account):
def format_tune(artist, _length, _rating, source, title, _track, _uri):
- if artist is None and title is None and source is None:
- return None
artist = GLib.markup_escape_text(artist or _('Unknown Artist'))
title = GLib.markup_escape_text(title or _('Unknown Title'))
source = GLib.markup_escape_text(source or _('Unknown Source'))
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ef339e872ebff5afa55020d4531bae87…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ef339e872ebff5afa55020d4531bae87…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
398153b1 by lovetox at 2020-12-29T20:38:30+01:00
3.0.0-dev1
- - - - -
1 changed file:
- setup.cfg
Changes:
=====================================
setup.cfg
=====================================
@@ -1,6 +1,6 @@
[metadata]
name = nbxmpp
-version = 1.99.0
+version = 3.0.0-dev1
description = XMPP Library
author = Yann Leboulanger, Philipp Hoerist
author_email = gajim-devel(a)gajim.org
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/398153b1a392804e6737a801…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/398153b1a392804e6737a801…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
bd9c61f1 by lovetox at 2020-12-29T20:31:18+01:00
Update ChangeLog
- - - - -
1 changed file:
- ChangeLog
Changes:
=====================================
ChangeLog
=====================================
@@ -1,3 +1,14 @@
+python-nbxmpp 2.0.0 (29 December 2020)
+
+ New
+
+ * New JID object
+ * Add JID Escaping (XEP-0106) support
+ * Add VCard4 (XEP-0292) support
+ * Make module calls generator based
+ * Add GSSAPI support (XEP-0233)
+ * Simplify and harmonize module API
+
python-nbxmpp 1.0.2 (14 August 2020)
New
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/bd9c61f141325dc1baef7aeb…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/bd9c61f141325dc1baef7aeb…
You're receiving this email because of your account on dev.gajim.org.