From b4b59bf076d8d4ec22b489174707ecda72a1c06e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 25 May 2010 21:28:42 +0200 Subject: url_titles: Fixed spotify track output. --- modules/url_titles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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']])) -- cgit v1.2.3