fix deluge parsing with py3 #1680

This commit is contained in:
clinton-hall 2019-12-08 21:52:18 +13:00
commit 7240a8e1be

View file

@ -65,7 +65,7 @@ def parse_deluge(args):
input_hash = args[1] input_hash = args[1]
input_id = args[1] input_id = args[1]
try: try:
input_category = core.TORRENT_CLASS.core.get_torrent_status(input_id, ['label']).get()['label'] input_category = core.TORRENT_CLASS.core.get_torrent_status(input_id, ['label']).get()[b'label'].decode()
except Exception: except Exception:
input_category = '' input_category = ''
return input_directory, input_name, input_category, input_hash, input_id return input_directory, input_name, input_category, input_hash, input_id