mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-24 12:27:45 +01:00
bug fix
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user