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,6 +486,7 @@ class Movies(Items):
kodicursor.execute(query, (pathid, filename, dateadded, fileid)) kodicursor.execute(query, (pathid, filename, dateadded, fileid))
# Process countries # Process countries
if 'ProductionLocations' in item:
self.kodi_db.addCountries(movieid, item['ProductionLocations'], "movie") 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'])