mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Commit not needed if using same connection
This commit is contained in:
parent
9041f16ff9
commit
08a94a5427
1 changed files with 1 additions and 2 deletions
|
@ -261,7 +261,6 @@ class WebSocketThread(threading.Thread):
|
||||||
showId=ReadKodiDB().getShowIdByEmbyId(item, connection, cursor) # Get the TV Show ID
|
showId=ReadKodiDB().getShowIdByEmbyId(item, connection, cursor) # Get the TV Show ID
|
||||||
self.logMsg("ShowID: " + str(showId),0)
|
self.logMsg("ShowID: " + str(showId),0)
|
||||||
WriteKodiVideoDB().deleteItemFromKodiLibrary(item, connection, cursor)
|
WriteKodiVideoDB().deleteItemFromKodiLibrary(item, connection, cursor)
|
||||||
connection.commit() #Need to commit so that the count will be right - can't use one in case of multiple deletes
|
|
||||||
if type == "episode":
|
if type == "episode":
|
||||||
showTotalCount = ReadKodiDB().getShowTotalCount(showId, connection, cursor) # Check if there are no episodes left
|
showTotalCount = ReadKodiDB().getShowTotalCount(showId, connection, cursor) # Check if there are no episodes left
|
||||||
self.logMsg("ShowTotalCount: " + str(showTotalCount),0)
|
self.logMsg("ShowTotalCount: " + str(showTotalCount),0)
|
||||||
|
|
Loading…
Reference in a new issue