From 2c0312a035e2540c88700a22280b622b725c6fa5 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 17 Mar 2016 15:18:57 +0100 Subject: [PATCH] Fix music libraries being scanned twice --- resources/lib/kodidb_functions.py | 1 - resources/lib/librarysync.py | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index aefaaa12..c9dc2011 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -49,7 +49,6 @@ class Kodidb_Functions(): def addPath(self, path): # SQL won't return existing paths otherwise - self.logMsg('path is: %s' % path, 1) if path is None: path = "" cursor = self.cursor diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 2fec946b..3734582d 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -876,17 +876,6 @@ class LibrarySync(Thread): with embydb.GetEmbyDB() as emby_db: # update views for all: self.views = emby_db.getAllViewInfo() - # Append music views only to self.views (no custom views otherwise) - if self.enableMusic: - for folderItem in sections: - if folderItem.attrib['type'] == 'artist': - entry = { - 'id': folderItem.attrib['key'], - 'name': folderItem.attrib['title'], - 'itemtype': 'artist' - } - self.views.append(entry) - self.logMsg("Removing views: %s" % self.old_views, 1) for view in self.old_views: emby_db.removeView(view)