diff --git a/src/searchengine/nova/engines/btdigg.py b/src/searchengine/nova/engines/btdigg.py index 7c7da80f1..6f3606f40 100644 --- a/src/searchengine/nova/engines/btdigg.py +++ b/src/searchengine/nova/engines/btdigg.py @@ -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 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): 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: diff --git a/src/searchengine/nova3/engines/btdigg.py b/src/searchengine/nova3/engines/btdigg.py index 95378abb0..1889d8563 100644 --- a/src/searchengine/nova3/engines/btdigg.py +++ b/src/searchengine/nova3/engines/btdigg.py @@ -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 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): 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: