diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-25 21:28:42 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-25 21:28:42 +0200 |
commit | b4b59bf076d8d4ec22b489174707ecda72a1c06e (patch) | |
tree | 2b7793ff6ac75e8f74108308b1e566003c0ab394 | |
parent | a9a8c128af7a7d366e448a918c07b7fbc8176f7b (diff) |
url_titles: Fixed spotify track output.
-rw-r--r-- | modules/url_titles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py index 11c0472..d5408ce 100644 --- a/modules/url_titles.py +++ b/modules/url_titles.py @@ -24,7 +24,7 @@ class Module: if data['type'] == 'artist': return 'Spotify artist: %s' % data['result']['name'] elif data['type'] == 'track': - return 'Spotify track: %s - %s' % (data['result']['artist']['name'], data['result']['artist']['name']) + return 'Spotify track: %s - %s (%s)' % (data['result']['artist']['name'], data['result']['name'], data['result']['album']['name']) elif data['type'] == 'album': return u'Spotify album: %s (%d) by %s' % (data['result']['name'], data['result']['released'], ', '.join([x['name'] for x in data['result']['artists']])) |