This commit is contained in:
rembo10
2014-05-01 00:06:25 -07:00
parent c0c1f9cc61
commit 1f3474a154
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -705,8 +705,8 @@ def send_to_downloader(data, bestqual, album):
else:
file_or_url = bestqual[2]
folder_name = utorrent.addTorrent(bestqual[2],bestqual[0])
folder_name = utorrent.addTorrent(file_or_url,bestqual[0])
if folder_name:
logger.info('Torrent folder name: %s' % folder_name)
else:
+1 -1
View File
@@ -84,7 +84,7 @@ def addTorrent(link, title):
if torrent[2] == title and torrent[4] > 1:
folder = os.path.basename(torrent[26])
tor_hash = torrent[0]
params = {'action':'setprops', 'hash':tor_hash,'s':'label', 'v':label}
params = {'action':'setprops', 'hash':tor_hash,'s':'label', 'v':label, token':token}
response = request.request_json(host, params=params, auth=auth, cookies=cookies)
break
else: