diff --git a/couchpotato/core/downloaders/transmission.py b/couchpotato/core/downloaders/transmission.py index 78f8fd7717..4fdb2fa65a 100644 --- a/couchpotato/core/downloaders/transmission.py +++ b/couchpotato/core/downloaders/transmission.py @@ -202,7 +202,7 @@ def __init__(self, host = 'http://localhost', port = 9091, rpc_url = 'transmissi self.session = {} if username and password: password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() - password_manager.add_password(realm = 'Transmission', uri = self.url, user = username, passwd = password) + password_manager.add_password(None, uri = self.url, user = username, passwd = password) opener = urllib2.build_opener(urllib2.HTTPBasicAuthHandler(password_manager)) opener.addheaders = [('User-agent', 'couchpotato-transmission-client/1.0')] urllib2.install_opener(opener) diff --git a/couchpotato/core/media/_base/providers/torrent/cpasbien.py b/couchpotato/core/media/_base/providers/torrent/cpasbien.py index 1a2da6a481..a130cd2de5 100644 --- a/couchpotato/core/media/_base/providers/torrent/cpasbien.py +++ b/couchpotato/core/media/_base/providers/torrent/cpasbien.py @@ -17,8 +17,8 @@ class Base(TorrentProvider): urls = { - 'test': 'http://www.cpasbien.io/', - 'search': 'http://www.cpasbien.io/recherche/', + 'test': 'http://www.cpasbien.cm/', + 'search': 'http://www.cpasbien.cm/recherche/', } http_time_between_calls = 1 #seconds @@ -91,7 +91,7 @@ def _search(self, movie, quality, results): continue detail_url = result.find("a")['href'] tmp = detail_url.split('/')[-1].replace('.html','.torrent') - url_download = ('http://www.cpasbien.io/telechargement/%s' % tmp) + url_download = ('http://www.cpasbien.cm/telechargement/%s' % tmp) size = result.findAll(attrs = {'class' : ["poid"]})[0].text seeder = result.findAll(attrs = {'class' : ["seed_ok"]})[0].text leecher = result.findAll(attrs = {'class' : ["down"]})[0].text @@ -174,7 +174,7 @@ def login(self): ] try: - response = opener.open('http://www.cpasbien.io', tryUrlencode({'url': '/'})) + response = opener.open('http://www.cpasbien.cm', tryUrlencode({'url': '/'})) except urllib2.URLError as e: log.error('Login to cPASbien failed: %s' % e) return False @@ -224,7 +224,7 @@ def download(self, url = '', nzb_id = ''): 'tab': 'searcher', 'list': 'torrent_providers', 'name': 'cpasbien', - 'description': 'See cPASbien', + 'description': 'See cPASbien', 'icon': 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAgZJREFUOI2lkj9oE2EYxn93l/Quf440gXg4lBoEMd2MDuLSkk0R6hCnuqjUoR0c7FDo4Ca0CDo7uRRBqEMDXSLUUqRDiZM1NMEI1VKTlDZpUppccvc5nJp/KooPfMPH+z3P+zzv+8F/Quq8XIVEEOY0kASIzpoLlBKUV+CuCblfCjyF/P3V1Qi6jrCs7k4eD/X1dS5NTy9tQaJD2MFDkA23W8UwQFGQRJcB0DS0cBg/DPY4a0OVZcHeHihKf1ifD6pVfGD/VmBAUeDwEGQZLAskCVQV6nVYW+M4lSLQo9stoKpQLoNtO2QhYHsbkkmOczm+AP5eBy/BfwRDn8GHJLkpFp3utRpkMpDLwckJvlCIM9Uqg6YZeAAj58E1CVlXCaaigcCjsWhU8Xq9UCo5lisVx4FhODFkGbdpMtlqXa4IsVUHYkLcVlbg3ddGo3AzErl2emLCGaCmwcAAuL4ntCxoNpFsG8O2odlkXojF17CgAK2PsJna2Xk/ViyOh0dHXWhaewaW1T6mSb5a5V6rtbAMU4D5c18FyCzu7i5fyWZvDMfjOh4PNBpd5A/5vLheq93ZhMc/eF0Lr0NhaX8/eS6djo/EYqfQdUekUuHNxsZR4uDg1id40f9J+qE/CwTeitlZIWZmxKtQqOSFi39D7IQy5/c/fxIMpoGhfyUDMAwXzsL4n958A9jfxsJ8X4WQAAAAAElFTkSuQmCC', 'wizard': True, 'options': [