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/digg.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/digg.py')
| -rw-r--r-- | searx/engines/digg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/digg.py b/searx/engines/digg.py index 1b5f2c8e4..5cb4ca8d9 100644 --- a/searx/engines/digg.py +++ b/searx/engines/digg.py @@ -58,6 +58,9 @@ def response(resp): pubdate = result.xpath(pubdate_xpath)[0].attrib.get('datetime') publishedDate = parser.parse(pubdate) + # http to https + thumbnail = thumbnail.replace("http://static.digg.com", "https://static.digg.com") + # append result results.append({'url': url, 'title': title, |