+ @staticmethod
+ def album_cover(albumid, size=200):
+ to = '~/.cache/jamaendo/cover-%d-%d.jpg'%(albumid, size)
+ if not os.path.isfile(to):
+ url = _GET2+'image/album/redirect/?id=%d&imagesize=%d'%(albumid, size)
+ urllib.urlretrieve(url, to)
+ return to
+
+ @staticmethod
+ def track_ogg(trackid):
+ return _GET2+ 'stream/track/redirect/?id=%d&streamencoding=ogg2'%(trackid)
+
+ @staticmethod
+ def track_mp3(trackid):
+ return _GET2+ 'stream/track/redirect/?id=%d&streamencoding=mp31'%(trackid)
+