Resuelto problema de que al marcar una temporada como vista/no vista en la Videoteca de Alfa en Windows, marcara toda la serie el Kodi

Faltaba un paréntesis en el Where:

sql = 'update files set playCount= %s where idFile  in ' \
           '(select idfile from episode_view where (strPath like "%s" or strPath like "%s")%s)' % \
          (value, item_path1, item_path2, request_season)
This commit is contained in:
Kingbox
2018-07-23 14:59:05 +02:00
parent e7a17abced
commit 8a125825cc

View File

@@ -319,7 +319,7 @@ def mark_season_as_watched_on_kodi(item, value=1):
item_path2 = item_path1.replace("\\", "/")
sql = 'update files set playCount= %s where idFile in ' \
'(select idfile from episode_view where strPath like "%s" or strPath like "%s"%s)' % \
'(select idfile from episode_view where (strPath like "%s" or strPath like "%s")%s)' % \
(value, item_path1, item_path2, request_season)
execute_sql_kodi(sql)