Generators

This commit is contained in:
angelblue05 2018-03-13 05:32:45 -05:00
parent 7af2df5ade
commit 4cd270a9d2
3 changed files with 216 additions and 13 deletions

View file

@ -63,6 +63,8 @@ class TVShows(Items):
def compare_all(self):
# Pull the list of movies and boxsets in Kodi
import emby as mb
pdialog = self.pdialog
views = self.emby_db.getView_byType('tvshows')
views += self.emby_db.getView_byType('mixed')
@ -116,7 +118,7 @@ class TVShows(Items):
updatelist.append(itemid)
log.info("TVShows to update for %s: %s", viewName, updatelist)
embytvshows = self.emby.getFullItems(updatelist)
embytvshows = (items['Items'] for items in mb.get_item_list(updatelist, True))
self.total = len(updatelist)
del updatelist[:]