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

View file

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