Cqoicebordel 10 years ago
parent
commit
4238812a51
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      searx/engines/bing_images.py
  2. 1
    1
      searx/engines/deviantart.py
  3. 1
    1
      searx/engines/flickr-noapi.py

+ 1
- 1
searx/engines/bing_images.py View File

65
 
65
 
66
         title = link.attrib.get('t1')
66
         title = link.attrib.get('t1')
67
         ihk = link.attrib.get('ihk')
67
         ihk = link.attrib.get('ihk')
68
-        
68
+
69
         #url = 'http://' + link.attrib.get('t3')
69
         #url = 'http://' + link.attrib.get('t3')
70
         url = yaml_data.get('surl')
70
         url = yaml_data.get('surl')
71
         img_src = yaml_data.get('imgurl')
71
         img_src = yaml_data.get('imgurl')

+ 1
- 1
searx/engines/deviantart.py View File

43
         return []
43
         return []
44
 
44
 
45
     dom = html.fromstring(resp.text)
45
     dom = html.fromstring(resp.text)
46
-    
46
+
47
     regex = re.compile('\/200H\/')
47
     regex = re.compile('\/200H\/')
48
 
48
 
49
     # parse results
49
     # parse results

+ 1
- 1
searx/engines/flickr-noapi.py View File

74
 # For a bigger thumbnail, keep only the url_z, not the url_n
74
 # For a bigger thumbnail, keep only the url_z, not the url_n
75
         if 'n' in photo['sizes']:
75
         if 'n' in photo['sizes']:
76
             thumbnail_src = photo['sizes']['n']['displayUrl']
76
             thumbnail_src = photo['sizes']['n']['displayUrl']
77
-        elif 'z'  in photo['sizes']:
77
+        elif 'z' in photo['sizes']:
78
             thumbnail_src = photo['sizes']['z']['displayUrl']
78
             thumbnail_src = photo['sizes']['z']['displayUrl']
79
         else:
79
         else:
80
             thumbnail_src = img_src
80
             thumbnail_src = img_src