|
|
@ -2,7 +2,7 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
#VERSION: 1.2 |
|
|
|
#VERSION: 1.21 |
|
|
|
#AUTHORS: BTDigg team (research@btdigg.org) |
|
|
|
#AUTHORS: BTDigg team (research@btdigg.org) |
|
|
|
# |
|
|
|
# |
|
|
|
# GNU GENERAL PUBLIC LICENSE |
|
|
|
# GNU GENERAL PUBLIC LICENSE |
|
|
@ -27,7 +27,7 @@ import sys |
|
|
|
from novaprinter import prettyPrinter |
|
|
|
from novaprinter import prettyPrinter |
|
|
|
|
|
|
|
|
|
|
|
class btdigg(object): |
|
|
|
class btdigg(object): |
|
|
|
url = 'http://btdigg.org' |
|
|
|
url = 'https://btdigg.org' |
|
|
|
name = 'BTDigg' |
|
|
|
name = 'BTDigg' |
|
|
|
|
|
|
|
|
|
|
|
supported_categories = {'all': ''} |
|
|
|
supported_categories = {'all': ''} |
|
|
@ -37,7 +37,7 @@ class btdigg(object): |
|
|
|
|
|
|
|
|
|
|
|
def search(self, what, cat='all'): |
|
|
|
def search(self, what, cat='all'): |
|
|
|
req = urllib.parse.unquote(what).replace('+', ' ') |
|
|
|
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: |
|
|
|
try: |
|
|
|
for line in u: |
|
|
|
for line in u: |
|
|
|