diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 13:36:00 -0400 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 13:36:00 -0400 |
| commit | 59a65d0bdc98a76f03235055f214747f699923a9 (patch) | |
| tree | d40cd40f1c2f96e44027b619171a0e78cf256a45 /searx/engines/dailymotion.py | |
| parent | 01de1c6f7808f45698c2207ae1f1b73c1132b088 (diff) | |
| parent | 59ee040424ccdef51f3616ed6487522bdaa44f3f (diff) | |
Merge pull request #305 from dalf/https_again
[enh] reduce the number of http outgoing connections.
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, |