Code optimization
This commit is contained in:
parent
d310b6c7e8
commit
24d6514b7f
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue