From 3a2ed4bc57f2ce7a82f004ef555f791319047a86 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sun, 13 Jan 2019 19:41:04 +1300 Subject: [PATCH] fixed manual Torrent run result parsing. Fixes #1520 --- TorrentToMedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 0e14e60d..4971c13d 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -358,7 +358,7 @@ def main(args): results = process_torrent(dir_name, input_name, subsection, input_hash or None, input_id or None, client_agent) - if results[0] != 0: + if results.status_code != 0: logger.error('A problem was reported when trying to perform a manual run for {0}:{1}.'.format (section, subsection)) result = results