mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-16 05:01:37 +03:00
Use HTTPS for btdigg
This commit is contained in:
parent
d740b051cb
commit
0ace60a39b
2 changed files with 6 additions and 6 deletions
|
@ -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 = what.replace('+', ' ')
|
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:
|
try:
|
||||||
for line in u:
|
for line in u:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue