Fix music libraries being scanned twice
This commit is contained in:
parent
40c742e71e
commit
2c0312a035
2 changed files with 0 additions and 12 deletions
|
@ -49,7 +49,6 @@ class Kodidb_Functions():
|
||||||
|
|
||||||
def addPath(self, path):
|
def addPath(self, path):
|
||||||
# SQL won't return existing paths otherwise
|
# SQL won't return existing paths otherwise
|
||||||
self.logMsg('path is: %s' % path, 1)
|
|
||||||
if path is None:
|
if path is None:
|
||||||
path = ""
|
path = ""
|
||||||
cursor = self.cursor
|
cursor = self.cursor
|
||||||
|
|
|
@ -876,17 +876,6 @@ class LibrarySync(Thread):
|
||||||
with embydb.GetEmbyDB() as emby_db:
|
with embydb.GetEmbyDB() as emby_db:
|
||||||
# update views for all:
|
# update views for all:
|
||||||
self.views = emby_db.getAllViewInfo()
|
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)
|
self.logMsg("Removing views: %s" % self.old_views, 1)
|
||||||
for view in self.old_views:
|
for view in self.old_views:
|
||||||
emby_db.removeView(view)
|
emby_db.removeView(view)
|
||||||
|
|
Loading…
Reference in a new issue