Prevent crash missing productionlocations

seems to be a new server bug
This commit is contained in:
angelblue05 2016-10-08 05:06:26 -05:00
parent 2be47a1e4f
commit 11e5de378b
1 changed files with 2 additions and 1 deletions

View File

@ -486,7 +486,8 @@ class Movies(Items):
kodicursor.execute(query, (pathid, filename, dateadded, fileid))
# Process countries
self.kodi_db.addCountries(movieid, item['ProductionLocations'], "movie")
if 'ProductionLocations' in item:
self.kodi_db.addCountries(movieid, item['ProductionLocations'], "movie")
# Process cast
people = artwork.get_people_artwork(item['People'])
self.kodi_db.addPeople(movieid, people, "movie")