Added omdbapikey functionality

This commit is contained in:
gunmantheh 2017-05-30 21:50:57 +02:00
parent 80c8ad5852
commit 3766fa3b84
3 changed files with 7 additions and 3 deletions

View file

@ -117,6 +117,7 @@ class autoProcessMovie(object):
web_root = cfg.get("web_root", "")
remote_path = int(cfg.get("remote_path", 0))
protocol = "https://" if ssl else "http://"
omdbapikey = cfg.get("omdbapikey", "")
status = int(status)
if status > 0 and core.NOEXTRACTFAILED:
extract = 0
@ -128,7 +129,7 @@ class autoProcessMovie(object):
logger.error("Server did not respond. Exiting", section)
return [1, "{0}: Failed to post-process - {1} did not respond.".format(section, section)]
imdbid = find_imdbid(dirName, inputName)
imdbid = find_imdbid(dirName, inputName, omdbapikey)
release = self.get_release(baseURL, imdbid, download_id)
# pull info from release found if available