Fix for missing path returned by Radarr #213

This commit is contained in:
morpheus65535 2018-11-05 06:30:50 -05:00
parent c002542beb
commit e97e34bbd4

View file

@ -50,7 +50,7 @@ def update_movies():
for movie in r.json():
if movie['hasFile'] is True:
if 'movieFile' in movie:
if movie['movieFile']['relativePath'] is not None:
if movie["path"] != None and movie['movieFile']['relativePath'] != None:
try:
overview = unicode(movie['overview'])
except: