Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Patched to compile with libspotify 12
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Jun 13, 2012
1 parent 10c100d commit 0ba6671
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/changes.rst
Expand Up @@ -4,6 +4,15 @@ Changes

.. currentmodule:: spotify

v1.7.1 (in development)
=======================

Updates to work with *libspotify* version 12:

- ``sp_album_cover`` requires a preferred image size. For now, it's hard coded
to ``SP_IMAGE_SIZE_NORMAL``. Thanks to olle. (Fixes: :issue:`66`)


v1.7 (2012-04-22)
=================

Expand Down
2 changes: 1 addition & 1 deletion src/album.c
Expand Up @@ -65,7 +65,7 @@ Album_artist(Album * self)
static PyObject *
Album_cover(Album * self)
{
const byte *cover = sp_album_cover(self->_album);
const byte *cover = sp_album_cover(self->_album, SP_IMAGE_SIZE_NORMAL);
if (!cover)
Py_RETURN_NONE;
return Py_BuildValue("s#", cover, 20);
Expand Down

0 comments on commit 0ba6671

Please sign in to comment.