mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
Don't call omdbapi without api key
This commit is contained in:
parent
3766fa3b84
commit
39c5cbe1a1
1 changed files with 2 additions and 0 deletions
|
@ -1063,6 +1063,8 @@ def find_imdbid(dirName, inputName, omdbApiKey):
|
|||
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue