fixed season check

This commit is contained in:
Marcel van der Veldt 2015-05-08 01:38:38 +02:00
parent 0cb4d7fb25
commit 7c995a5a17

View file

@ -653,7 +653,7 @@ class WriteKodiVideoDB():
if seasonData != None: if seasonData != None:
for season in seasonData: for season in seasonData:
seasonNum = season.get("IndexNumber") seasonNum = season.get("IndexNumber")
if seasonNum != None and seasonNum >= 0 and seasonNum <= 1000: if seasonNum != None and seasonNum >= 0:
cursor.execute("SELECT idSeason as seasonid FROM seasons WHERE idShow = ? and season = ?",(kodiTvShowId, seasonNum)) cursor.execute("SELECT idSeason as seasonid FROM seasons WHERE idShow = ? and season = ?",(kodiTvShowId, seasonNum))
result = cursor.fetchone() result = cursor.fetchone()
if result == None: if result == None: