Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from marklkelly/master

Some minor fixes to make the project compatible with the latest version of libspotify
  • Loading branch information...
commit 5d5320a2cd58e4e0eb8352a5f672c87e53ff02b3 2 parents 0318f07 + 4930a3a
@vilhelmk authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  album.c
  2. +1 −1  spotify.c
View
2  album.c
@@ -135,7 +135,7 @@ PHP_METHOD(SpotifyAlbum, getCover)
zval tempretval, *thisptr = getThis();
SPOTIFY_METHOD(SpotifyAlbum, browse, &tempretval, thisptr);
- const byte* image_id = sp_album_cover(p->album);
+ const byte* image_id = sp_album_cover(p->album, SP_IMAGE_SIZE_NORMAL);
sp_image *image = sp_image_create(p->session, image_id);
while(!sp_image_is_loaded(image))
View
2  spotify.c
@@ -121,7 +121,7 @@ PHP_METHOD(Spotify, __construct)
return;
}
- sp_session_login(session, Z_STRVAL_P(z_user), Z_STRVAL_P(z_pass), 0);
+ sp_session_login(session, Z_STRVAL_P(z_user), Z_STRVAL_P(z_pass), 0, 0);
obj->session = session;
obj->timeout = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.