[gnome-music/wip/mschraal/tageditor: 3/3] grlacoustidwrapper: Use proper string formatting
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/tageditor: 3/3] grlacoustidwrapper: Use proper string formatting
- Date: Fri, 22 Nov 2019 16:07:40 +0000 (UTC)
commit 992dcdf4219230f187f9aca1c9d4b6d0fd8ee483
Author: Marinus Schraal <mschraal gnome org>
Date: Fri Nov 22 17:01:13 2019 +0100
grlacoustidwrapper: Use proper string formatting
gnomemusic/grilowrappers/grlacoustidwrapper.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grlacoustidwrapper.py b/gnomemusic/grilowrappers/grlacoustidwrapper.py
index 7cccd7db..ce46bd2f 100644
--- a/gnomemusic/grilowrappers/grlacoustidwrapper.py
+++ b/gnomemusic/grilowrappers/grlacoustidwrapper.py
@@ -67,9 +67,9 @@ class GrlAcoustIDWrapper(GObject.GObject):
options = Grl.OperationOptions()
options.set_resolution_flags(Grl.ResolutionFlags.NORMAL)
- query = "duration=" + str(coresong.props.duration)
- query += "&fingerprint=" + coresong.props.media.get_string(
- self._fingerprint_key)
+ query = "duration={}&fingerprint={}".format(
+ str(coresong.props.duration),
+ coresong.props.media.get_string(self._fingerprint_key))
def acoustid_resolved(source, op_id, media, count, callback, error):
if error:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]