mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
fix return on manula download
This commit is contained in:
parent
6687d3d02e
commit
74b5cb31d0
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ def get_imdb(nzbName, dirName):
|
||||||
def get_movie_info(baseURL, imdbid, download_id):
|
def get_movie_info(baseURL, imdbid, download_id):
|
||||||
|
|
||||||
if not imdbid and not download_id:
|
if not imdbid and not download_id:
|
||||||
return ""
|
return "", None, imdbid
|
||||||
|
|
||||||
movie_id = ""
|
movie_id = ""
|
||||||
releaselist = []
|
releaselist = []
|
||||||
|
@ -89,13 +89,13 @@ def get_movie_info(baseURL, imdbid, download_id):
|
||||||
urlObj = urllib.urlopen(url)
|
urlObj = urllib.urlopen(url)
|
||||||
except:
|
except:
|
||||||
Logger.exception("Unable to open URL")
|
Logger.exception("Unable to open URL")
|
||||||
return ""
|
return "", None, imdbid
|
||||||
try:
|
try:
|
||||||
result = json.load(urlObj)
|
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()]
|
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:
|
except:
|
||||||
Logger.exception("Unable to parse json data for releases")
|
Logger.exception("Unable to parse json data for releases")
|
||||||
return ""
|
return "", None, imdbid
|
||||||
|
|
||||||
if len(releaselist) > 0:
|
if len(releaselist) > 0:
|
||||||
movie_id = str(movieid[index])
|
movie_id = str(movieid[index])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue