Use HTTPS for btdigg

This commit is contained in:
Christophe Dumez 2013-01-19 19:36:10 +02:00
parent d740b051cb
commit 0ace60a39b
2 changed files with 6 additions and 6 deletions

View file

@ -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:

View file

@ -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: