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 Clinton Hall
parent 0c564243c2
commit 4c512051f7

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':