diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-01-01 14:10:59 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-01 14:10:59 +0100 |
| commit | 469e08881ee17d8a180d0c0741c1552a29108f0e (patch) | |
| tree | 59db47065d54fdde5576babc19155f128359386f /searx/engines/flickr-noapi.py | |
| parent | c7cbd38fcc60601dd3b41df8a3a234c079f5dc0b (diff) | |
| parent | 5d977056f7aa216eae09a22c3baaff73546f6ff1 (diff) | |
Merge pull request #165 from Cqoicebordel/Moar-engines
Moar engines
Diffstat (limited to 'searx/engines/flickr-noapi.py')
| -rw-r--r-- | searx/engines/flickr-noapi.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/searx/engines/flickr-noapi.py b/searx/engines/flickr-noapi.py index 522503b53..f90903647 100644 --- a/searx/engines/flickr-noapi.py +++ b/searx/engines/flickr-noapi.py @@ -53,7 +53,8 @@ def response(resp): for photo in photos: - # In paged configuration, the first pages' photos are represented by a None object + # In paged configuration, the first pages' photos + # are represented by a None object if photo is None: continue @@ -74,10 +75,15 @@ def response(resp): title = photo['title'] - content = '<span class="photo-author">' + photo['owner']['username'] + '</span><br />' + content = '<span class="photo-author">' +\ + photo['owner']['username'] +\ + '</span><br />' if 'description' in photo: - content = content + '<span class="description">' + photo['description'] + '</span>' + content = content +\ + '<span class="description">' +\ + photo['description'] +\ + '</span>' # append result results.append({'url': url, |