mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix season name
This commit is contained in:
parent
dce980c4af
commit
2fa16ddffb
1 changed files with 4 additions and 2 deletions
|
@ -174,8 +174,10 @@ class KodiTVShows(KodiItems):
|
|||
except TypeError:
|
||||
season_id = self._add_season(show_id, number)
|
||||
|
||||
query = "UPDATE seasons SET name = ? WHERE idSeason = ?"
|
||||
self.cursor.execute(query, (name, season_id))
|
||||
if name:
|
||||
|
||||
query = "UPDATE seasons SET name = ? WHERE idSeason = ?"
|
||||
self.cursor.execute(query, (name, season_id,))
|
||||
|
||||
return season_id
|
||||
|
||||
|
|
Loading…
Reference in a new issue