mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 18:29:40 +02:00
Use Requests for EchoNest API
This commit is contained in:
parent
26b0320c4a
commit
49399b8aea
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue