Update movies.py

Check for an updated dir_name in case IMDB id was appended.
This commit is contained in:
Matt Park 2023-10-02 15:15:01 -04:00 committed by GitHub
parent c6292d5390
commit 836df51d14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
else:
extract = int(cfg.get('extract', 0))
imdbid = find_imdbid(dir_name, input_name, omdbapikey)
imdbid, dir_name = find_imdbid(dir_name, input_name, omdbapikey)
if section == 'CouchPotato':
base_url = '{0}{1}:{2}{3}/api/{4}/'.format(protocol, host, port, web_root, apikey)
if section == 'Radarr':