kodi 19: validatePath e makeLegalFilename nel modulo xbmcvfs

This commit is contained in:
marco
2020-11-18 16:49:31 +01:00
parent 7ffa90f92b
commit 5363031f4e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -8,10 +8,12 @@ import sys
import xbmc
# on kodi 18 its xbmc.translatePath, on 19 xbmcvfs.translatePath
# functions that on kodi 19 moved to xbmcvfs
try:
import xbmcvfs
xbmc.translatePath = xbmcvfs.translatePath
xbmc.validatePath = xbmcvfs.validatePath
xbmc.makeLegalFilename = xbmcvfs.makeLegalFilename
except:
pass
from platformcode import config, logger