mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Season artwork update
When changing artwork
This commit is contained in:
parent
7120c688a0
commit
494e326413
1 changed files with 11 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue