Merge pull request #1 from rowanoulton/bugfix-api-endpoint

Adjust API endpoint
This commit is contained in:
tripitakit 2014-03-07 22:50:09 +01:00
commit 451528fb35
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ function XenoCanto(){
/** Search for name of advanced options*/
XenoCanto.prototype.search = function(query, success){
if (!!query) {
var url = 'http://www.xeno-canto.org/api/recordings.php?query=';
var url = 'http://www.xeno-canto.org/api/2/recordings?query=';
// Duck-typing args
if (typeof(query) === 'string') {