From 752a57c15e1d643414a7586f6a62cb5592d1421a Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 26 Nov 2018 17:33:59 +0100 Subject: [PATCH] Fix OperationalError: no such table tvshows --- resources/lib/itemtypes/tvshows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/itemtypes/tvshows.py b/resources/lib/itemtypes/tvshows.py index 735b9587..8cc6525b 100644 --- a/resources/lib/itemtypes/tvshows.py +++ b/resources/lib/itemtypes/tvshows.py @@ -78,7 +78,7 @@ class TvShowMixin(object): not self.plexdb.show_has_episodes(db_item['show_id'])): # There's no other season or episode left, delete the show self.remove_show(db_item['parent_id']) - self.plexdb.remove(db_item['show_id'], v.KODI_TYPE_SHOW) + self.plexdb.remove(db_item['show_id'], v.PLEX_TYPE_SHOW) # TVSHOW ##### elif db_item['plex_type'] == v.PLEX_TYPE_SHOW: # Remove episodes, seasons and the tvshow itself