From c308c069293abcfddef7a7ce7249bb2bbcd99c4d Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 28 Mar 2019 13:47:35 +0100 Subject: [PATCH] Fix duplicate music entries for direct paths (requires DB reset!) --- resources/lib/music.py | 4 ++-- resources/lib/variables.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/music.py b/resources/lib/music.py index 45b57001..ad102319 100644 --- a/resources/lib/music.py +++ b/resources/lib/music.py @@ -8,7 +8,7 @@ from . import utils from . import variables as v ############################################################################### -LOG = getLogger('PLEX.music') +LOG = getLogger('PLEX.music.py') ############################################################################### @@ -25,7 +25,7 @@ def excludefromscan_music_folders(sections): reboot = False api = API(item=None) for section in sections: - if section.plex_type != v.PLEX_TYPE_ARTIST: + if section.section_type != v.PLEX_TYPE_ARTIST: # Only look at music libraries continue if not section.sync_to_kodi: diff --git a/resources/lib/variables.py b/resources/lib/variables.py index 46b808fb..510081ab 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -96,7 +96,7 @@ COMPANION_PORT = int(_ADDON.getSetting('companionPort')) PKC_MACHINE_IDENTIFIER = None # Minimal PKC version needed for the Kodi database - otherwise need to recreate -MIN_DB_VERSION = '2.6.8' +MIN_DB_VERSION = '2.7.10' # Supported databases - version numbers in tuples should decrease SUPPORTED_VIDEO_DB = {