From 49399b8aea0d00c25dbde2c2276bb94d20adb80c Mon Sep 17 00:00:00 2001 From: Afterster Date: Sat, 28 Dec 2013 17:08:03 +0100 Subject: [PATCH] Use Requests for EchoNest API --- albums.php | 1 + lib/class/wanted.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/albums.php b/albums.php index 02c0675e..a857f92b 100644 --- a/albums.php +++ b/albums.php @@ -190,6 +190,7 @@ switch ($_REQUEST['action']) { } break; case 'show_missing': + set_time_limit(600); $mbid = $_REQUEST['mbid']; $artistid = $_REQUEST['artist']; $artist = new Artist($artistid); diff --git a/lib/class/wanted.class.php b/lib/class/wanted.class.php index fe8a3559..42c57308 100644 --- a/lib/class/wanted.class.php +++ b/lib/class/wanted.class.php @@ -218,7 +218,7 @@ class Wanted extends database_object $song['session'] = session_id(); $song['album_mbid'] = $this->mbid; if (AmpConfig::get('echonest_api_key')) { - $echonest = new EchoNest_Client(); + $echonest = new EchoNest_Client(new EchoNest_HttpClient_Requests()); $echonest->authenticate(AmpConfig::get('echonest_api_key')); $enSong = null; try {