1
0
Fork 0
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:
Afterster 2014-02-22 21:05:02 +01:00
parent e578b99a95
commit 3169e9fcf1

View file

@ -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);