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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user