From 494e326413d802ac38e91928589db92963108d14 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 18 Jun 2015 03:03:44 -0500 Subject: [PATCH] Season artwork update When changing artwork --- resources/lib/LibrarySync.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index 5570cdf2..dd6c26c8 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -580,6 +580,17 @@ class LibrarySync(): #tv show doesn't exist #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":