Code optimization

This commit is contained in:
tomkat83 2016-09-10 11:59:42 +02:00
parent d310b6c7e8
commit 24d6514b7f

View file

@ -469,16 +469,13 @@ class Movies(Items):
# Process countries # Process countries
self.kodi_db.addCountries(movieid, countries, "movie") self.kodi_db.addCountries(movieid, countries, "movie")
# Process cast # Process cast
people = API.getPeopleList() self.kodi_db.addPeople(movieid, API.getPeopleList(), "movie")
self.kodi_db.addPeople(movieid, people, "movie")
# Process genres # Process genres
self.kodi_db.addGenres(movieid, genres, "movie") self.kodi_db.addGenres(movieid, genres, "movie")
# Process artwork # Process artwork
allartworks = API.getAllArtwork() artwork.addArtwork(API.getAllArtwork(), movieid, "movie", kodicursor)
artwork.addArtwork(allartworks, movieid, "movie", kodicursor)
# Process stream details # Process stream details
streams = API.getMediaStreams() self.kodi_db.addStreams(fileid, API.getMediaStreams(), runtime)
self.kodi_db.addStreams(fileid, streams, runtime)
# Process studios # Process studios
self.kodi_db.addStudios(movieid, studios, "movie") self.kodi_db.addStudios(movieid, studios, "movie")
# Process tags: view, Plex collection tags # Process tags: view, Plex collection tags