[totem] Use Jamendo's audio format preference when making requests for audio streams



commit f048d91fe82d9ca5cb442f4b1d3240a4819d9d0b
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Sep 5 19:37:39 2010 +0100

    Use Jamendo's audio format preference when making requests for audio streams
    
    Previously, the Jamendo plugin's audio format preference wasn't used at all.
    This should fix that, though the change is untested due to introspection
    problems on my computer at the moment.

 src/plugins/jamendo/jamendo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/jamendo/jamendo.py b/src/plugins/jamendo/jamendo.py
index b64b326..96d4933 100644
--- a/src/plugins/jamendo/jamendo.py
+++ b/src/plugins/jamendo/jamendo.py
@@ -652,7 +652,7 @@ class JamendoService(threading.Thread):
                 album['image'] = fname
                 album['tracks'] = json.loads(self._request(
                     '%s/id+name+duration+stream/track/json/?album_id=%s'\
-                    '&order=numalbum_asc' % (self.API_URL, album['id'])
+                    '&order=numalbum_asc&streamencoding=%s' % (self.API_URL, album['id'], self.AUDIO_FORMAT)
                 ))
                 album['license'] = json.loads(self._request(
                     '%s/name/license/json/album_license/?album_id=%s'\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]