Skip to content

Commit

Permalink
Merge pull request #137 from Rubadel/resolve-jamendo-engine
Browse files Browse the repository at this point in the history
resolve jamendo engine instead remove
  • Loading branch information
possumbilities authored Oct 27, 2022
2 parents 54e7e6f + 700b1c0 commit 2b12f7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

case "jamendo":
if ( $rights ) {
$url = 'http://www.jamendo.com/search?qs=fq=license_cc:(' . $rights . ')&q=' . $query;
$url = 'https://licensing.jamendo.com/en/royalty-free-music/search?qs=' . 'query=' . $query;
} else {
$url = 'http://www.jamendo.com/search?qs=q=' . $query;
$url = 'http://www.jamendo.com/search?q=tag:' . $query;
}
break;

Expand Down
8 changes: 4 additions & 4 deletions search.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,10 @@ function doSearch() {
break;

case "jamendo":
if (rights) {
url = 'http://www.jamendo.com/search?qs=fq=license_cc:(' + rights + ')&q=' + query.val();
} else {
url = 'http://www.jamendo.com/search?qs=q=' + query.val();
if (rights) {
url = 'https://licensing.jamendo.com/en/royalty-free-music/search?qs=' + 'query=' + query.val();
} else {
url = 'http://www.jamendo.com/search?q=tag:' + query.val();
}
break;

Expand Down

0 comments on commit 2b12f7a

Please sign in to comment.