Adjust API endpoint
This commit is contained in:
parent
2ecaa58904
commit
4750f31010
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue