Merge pull request #1610 from croneter/py3-nexus

Initial compatibility with Kodi 20 Nexus. Keep in mind that development for Kodi Nexus has not even officially reached alpha stage - any issues you encounter are probably caused by that
This commit is contained in:
croneter 2021-09-08 11:33:42 +02:00 committed by GitHub
commit b4c78cc575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,15 +89,18 @@ MIN_DB_VERSION = '3.2.1'
# Supported databases - version numbers in tuples should decrease # Supported databases - version numbers in tuples should decrease
SUPPORTED_VIDEO_DB = { SUPPORTED_VIDEO_DB = {
# Kodi 19 - EXTREMLY EXPERIMENTAL! # Kodi 19 - EXTREMLY EXPERIMENTAL!
19: (119, ) 19: (119, ),
20: (119, ),
} }
SUPPORTED_MUSIC_DB = { SUPPORTED_MUSIC_DB = {
# Kodi 19 - EXTREMLY EXPERIMENTAL! # Kodi 19 - EXTREMLY EXPERIMENTAL!
19: (82, ) 19: (82, ),
20: (82, ),
} }
SUPPORTED_TEXTURE_DB = { SUPPORTED_TEXTURE_DB = {
# Kodi 19 - EXTREMLY EXPERIMENTAL! # Kodi 19 - EXTREMLY EXPERIMENTAL!
19: (13, ) 19: (13, ),
20: (13, ),
} }
DB_VIDEO_VERSION = None DB_VIDEO_VERSION = None
DB_VIDEO_PATH = None DB_VIDEO_PATH = None
@ -684,7 +687,7 @@ def database_paths():
unsupported version unsupported version
''' '''
# Check Kodi version first # Check Kodi version first
if KODIVERSION not in (19, ): if KODIVERSION not in (19, 20):
raise RuntimeError('Kodiversion %s not supported by PKC' % KODIVERSION) raise RuntimeError('Kodiversion %s not supported by PKC' % KODIVERSION)
database_path = xbmcvfs.translatePath('special://database') database_path = xbmcvfs.translatePath('special://database')