Fix for missing path returned by Radarr #213

pull/222/head
morpheus65535 6 years ago
parent c002542beb
commit e97e34bbd4

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

Loading…
Cancel
Save