mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +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;
|
break;
|
||||||
case 'show_missing':
|
case 'show_missing':
|
||||||
|
set_time_limit(600);
|
||||||
$mbid = $_REQUEST['mbid'];
|
$mbid = $_REQUEST['mbid'];
|
||||||
$artistid = $_REQUEST['artist'];
|
$artistid = $_REQUEST['artist'];
|
||||||
$artist = new Artist($artistid);
|
$artist = new Artist($artistid);
|
||||||
|
|
|
@ -218,7 +218,7 @@ class Wanted extends database_object
|
||||||
$song['session'] = session_id();
|
$song['session'] = session_id();
|
||||||
$song['album_mbid'] = $this->mbid;
|
$song['album_mbid'] = $this->mbid;
|
||||||
if (AmpConfig::get('echonest_api_key')) {
|
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'));
|
$echonest->authenticate(AmpConfig::get('echonest_api_key'));
|
||||||
$enSong = null;
|
$enSong = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue