mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 01:36:11 +00:00
Remove old saved views
This commit is contained in:
parent
81ea279319
commit
dc74bf42aa
1 changed files with 7 additions and 0 deletions
|
@ -353,6 +353,13 @@ class LibrarySync(threading.Thread):
|
|||
kodiconn = utils.kodiSQL('video')
|
||||
kodicursor = kodiconn.cursor()
|
||||
|
||||
# Erase saved views
|
||||
embycursor.execute('SELECT tbl_name FROM sqlite_master WHERE type="table"')
|
||||
rows = embycursor.fetchall()
|
||||
for row in rows:
|
||||
tablename = row[0]
|
||||
if tablename == "view":
|
||||
embycursor.execute("DELETE FROM " + tablename)
|
||||
# Compare views, assign correct tags to items
|
||||
self.maintainViews(embycursor, kodicursor)
|
||||
|
||||
|
|
Loading…
Reference in a new issue