From 74b5cb31d0a9f4996c042dd35f27788aed812d26 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 20 Feb 2014 15:33:21 +1030 Subject: [PATCH] fix return on manula download --- autoProcess/autoProcessMovie.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoProcess/autoProcessMovie.py b/autoProcess/autoProcessMovie.py index 81bb5fb4..08f1385d 100644 --- a/autoProcess/autoProcessMovie.py +++ b/autoProcess/autoProcessMovie.py @@ -46,7 +46,7 @@ def get_imdb(nzbName, dirName): def get_movie_info(baseURL, imdbid, download_id): if not imdbid and not download_id: - return "" + return "", None, imdbid movie_id = "" releaselist = [] @@ -89,13 +89,13 @@ def get_movie_info(baseURL, imdbid, download_id): urlObj = urllib.urlopen(url) except: Logger.exception("Unable to open URL") - return "" + return "", None, imdbid try: result = json.load(urlObj) releaselist = [item["info"]["download_id"] for item in result["media"]["releases"] if "download_id" in item["info"] and item["info"]["download_id"].lower() == download_id.lower()] except: Logger.exception("Unable to parse json data for releases") - return "" + return "", None, imdbid if len(releaselist) > 0: movie_id = str(movieid[index])