Browse Source

Use HTTPS for btdigg

adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
0ace60a39b
  1. 6
      src/searchengine/nova/engines/btdigg.py
  2. 6
      src/searchengine/nova3/engines/btdigg.py

6
src/searchengine/nova/engines/btdigg.py

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
#
#VERSION: 1.2
#VERSION: 1.21
#AUTHORS: BTDigg team (research@btdigg.org)
#
# GNU GENERAL PUBLIC LICENSE
@ -27,7 +27,7 @@ import sys @@ -27,7 +27,7 @@ import sys
from novaprinter import prettyPrinter
class btdigg(object):
url = 'http://btdigg.org'
url = 'https://btdigg.org'
name = 'BTDigg'
supported_categories = {'all': ''}
@ -37,7 +37,7 @@ class btdigg(object): @@ -37,7 +37,7 @@ class btdigg(object):
def search(self, what, cat='all'):
req = what.replace('+', ' ')
u = urllib2.urlopen('http://api.btdigg.org/api/public-8e9a50f8335b964f/s01?%s' % (urllib.urlencode(dict(q = req)),))
u = urllib2.urlopen('https://api.btdigg.org/api/public-8e9a50f8335b964f/s01?%s' % (urllib.urlencode(dict(q = req)),))
try:
for line in u:

6
src/searchengine/nova3/engines/btdigg.py

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
#
#VERSION: 1.2
#VERSION: 1.21
#AUTHORS: BTDigg team (research@btdigg.org)
#
# GNU GENERAL PUBLIC LICENSE
@ -27,7 +27,7 @@ import sys @@ -27,7 +27,7 @@ import sys
from novaprinter import prettyPrinter
class btdigg(object):
url = 'http://btdigg.org'
url = 'https://btdigg.org'
name = 'BTDigg'
supported_categories = {'all': ''}
@ -37,7 +37,7 @@ class btdigg(object): @@ -37,7 +37,7 @@ class btdigg(object):
def search(self, what, cat='all'):
req = urllib.parse.unquote(what).replace('+', ' ')
u = urllib.request.urlopen('http://api.btdigg.org/api/public-8e9a50f8335b964f/s01?%s' % (urllib.parse.urlencode(dict(q = req)),))
u = urllib.request.urlopen('https://api.btdigg.org/api/public-8e9a50f8335b964f/s01?%s' % (urllib.parse.urlencode(dict(q = req)),))
try:
for line in u:

Loading…
Cancel
Save