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