diff options
author | martian <martian@ampache> | 2010-02-12 03:28:49 +0000 |
---|---|---|
committer | martian <martian@ampache> | 2010-02-12 03:28:49 +0000 |
commit | 6c7d0fffebc5f3187f0fb97d51a60d6699bc93fc (patch) | |
tree | 91ee5c3e15452041f9e94da9618097562e24b60c /lib/class/album.class.php | |
parent | 134adf17af031d979542ac04e99ab3d5c35c5d67 (diff) | |
download | ampache-6c7d0fffebc5f3187f0fb97d51a60d6699bc93fc.tar.gz ampache-6c7d0fffebc5f3187f0fb97d51a60d6699bc93fc.tar.bz2 ampache-6c7d0fffebc5f3187f0fb97d51a60d6699bc93fc.zip |
use medium images from google, not any
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r-- | lib/class/album.class.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 3fb56ebd..c5f5e1a8 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -430,7 +430,11 @@ class Album extends database_object { $search = rawurlencode($search); - $html = file_get_contents("http://images.google.com/images?source=hp&q=$search&oq=&um=1&ie=UTF-8&sa=N&tab=wi&start=0&tbo=1"); + //$size = ''; // Any + $size = '&imgsz=m'; // Medium + //$size = '&imgsz=l'; // Large + + $html = file_get_contents("http://images.google.com/images?source=hp&q=$search&oq=&um=1&ie=UTF-8&sa=N&tab=wi&start=0&tbo=1$size"); if(preg_match_all("|\ssrc\=\"(http.+?)\"|", $html, $matches, PREG_PATTERN_ORDER)) foreach ($matches[1] as $match) { |