on master help sign in
[fix] digg - the ISO time stamp of published date has been changed

Error pattern:: Engines cannot retrieve results: digg (unexpected crash time data '2020-10-16T14:09:55Z' does not match format '%Y-%m-%d %H:%M:%S') Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commit173b744ef0fa69c217381bfc000709ba7b336824 authorMarkus Heiser <markus.heiser@darmarit.de> dateFri 30 Oct 2020, 09:36 (6 years ago) parent219af24
1 file changed+2−1
searx/engines/digg.py+2−1
searx/engines/digg.py+2−1
@@ -54,7 +54,8 @@ def response(resp):
5454 # parse results
5555 for result in search_result['mapped']:
5656
57− published = datetime.strptime(result['created']['ISO'], "%Y-%m-%d %H:%M:%S")
57+ # 'created': {'ISO': '2020-10-16T14:09:55Z', ...}
58+ published = datetime.strptime(result['created']['ISO'], "%Y-%m-%dT%H:%M:%SZ")
5859 # append result
5960 results.append({'url': result['url'],
6061 'title': result['title'],