on master help sign in
Flake8
4238812Cqoicebordel
searx/engines/bing_images.py+1−1
@@ -65,7 +65,7 @@ def response(resp):
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')
searx/engines/deviantart.py+1−1
@@ -43,7 +43,7 @@ def response(resp):
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
searx/engines/flickr-noapi.py+1−1
@@ -74,7 +74,7 @@ def response(resp):
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