diff options
author | Alexandre Flament <alex@al-f.net> | 2015-05-02 11:43:12 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2015-05-02 11:43:12 +0200 |
commit | 78edc16e66fccbfb16c522f4453c88a85de61bf4 (patch) | |
tree | ef5844cfb06bf16681fcb34cdb0a322287cf7dc8 /searx/engines/dailymotion.py | |
parent | bbd83f5a519381ac7ea690a1645258d106a9ba8a (diff) | |
download | searxng-78edc16e66fccbfb16c522f4453c88a85de61bf4.tar.gz searxng-78edc16e66fccbfb16c522f4453c88a85de61bf4.zip |
[enh] reduce the number of http outgoing connections.
engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter
Diffstat (limited to 'searx/engines/dailymotion.py')
-rw-r--r-- | searx/engines/dailymotion.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py index 03b1dbb8b..187639706 100644 --- a/searx/engines/dailymotion.py +++ b/searx/engines/dailymotion.py @@ -60,6 +60,9 @@ def response(resp): publishedDate = datetime.fromtimestamp(res['created_time'], None) embedded = embedded_url.format(videoid=res['id']) + # http to https + thumbnail = thumbnail.replace("http://", "https://") + results.append({'template': 'videos.html', 'url': url, 'title': title, |