Merge pull request #800 from croneter/fix-direct-music

Fix duplicate music entries for direct paths (forces a Kodi database reset!)
This commit is contained in:
croneter 2019-03-28 14:04:53 +01:00 committed by GitHub
commit 456897a3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ from . import utils
from . import variables as v 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 reboot = False
api = API(item=None) api = API(item=None)
for section in sections: 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 # Only look at music libraries
continue continue
if not section.sync_to_kodi: if not section.sync_to_kodi:

View file

@ -96,7 +96,7 @@ COMPANION_PORT = int(_ADDON.getSetting('companionPort'))
PKC_MACHINE_IDENTIFIER = None PKC_MACHINE_IDENTIFIER = None
# Minimal PKC version needed for the Kodi database - otherwise need to recreate # 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 databases - version numbers in tuples should decrease
SUPPORTED_VIDEO_DB = { SUPPORTED_VIDEO_DB = {