mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Add filters on Flickr
This commit is contained in:
parent
e578b99a95
commit
3169e9fcf1
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class AmpacheFlickr {
|
|||
|
||||
public function get_photos($search) {
|
||||
$photos = array();
|
||||
$url = "https://api.flickr.com/services/rest/?&method=flickr.photos.search&api_key=" . $this->api_key . "&per_page=30&text=" . rawurlencode($search);
|
||||
$url = "https://api.flickr.com/services/rest/?&method=flickr.photos.search&api_key=" . $this->api_key . "&per_page=20&content_type=1&text=" . rawurlencode($search . " music");
|
||||
$request = Requests::get($url);
|
||||
if ($request->status_code == 200) {
|
||||
$xml = simplexml_load_string($request->body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue