improve logging for imdb id lookup. #1341

This commit is contained in:
clinton-hall 2018-08-30 20:42:20 +12:00
commit e5066cba0d

View file

@ -1118,10 +1118,12 @@ def find_imdbid(dirName, inputName, omdbApiKey):
url = "http://www.omdbapi.com"
if not omdbApiKey:
logger.info("Unable to determine imdbID: No api key provided for ombdapi.com.")
return
logger.debug("Opening URL: {0}".format(url))
if not omdbApiKey:
return
try:
r = requests.get(url, params={'apikey': omdbApiKey, 'y': year, 't': title},
verify=False, timeout=(60, 300))