Adjust API endpoint

This commit is contained in:
Rowan Oulton 2014-03-08 10:32:30 +13:00
parent 2ecaa58904
commit 4750f31010
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') {