Season artwork update

When changing artwork
This commit is contained in:
angelblue05 2015-06-18 03:03:44 -05:00
parent 7120c688a0
commit 494e326413

View file

@ -581,6 +581,17 @@ class LibrarySync():
#perform full tvshow sync instead so both the show and episodes get added
self.TvShowsFullSync(connection,cursor,None)
elif u"Season" in MBitem['Type']:
#get the tv show
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem["SeriesId"],))
result = cursor.fetchone()
if result:
kodi_show_id = result[0]
season = MBitem['IndexNumber']
# update season
WriteKodiVideoDB().updateSeasons(MBitem["SeriesId"], kodi_show_id, connection, cursor)
#### PROCESS BOXSETS ######
elif MBitem["Type"] == "BoxSet":
boxsetMovies = ReadEmbyDB().getMoviesInBoxSet(boxset["Id"])