Fix ImportError
This commit is contained in:
parent
c55b687495
commit
fc1d77eff2
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ from logging import getLogger
|
||||||
from ntpath import dirname
|
from ntpath import dirname
|
||||||
|
|
||||||
import artwork
|
import artwork
|
||||||
from utils import kodi_sql, tryDecode
|
from utils import kodi_sql, try_decode
|
||||||
import variables as v
|
import variables as v
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -1574,7 +1574,7 @@ def kodiid_from_filename(path, kodi_type):
|
||||||
Returns None if not possible
|
Returns None if not possible
|
||||||
"""
|
"""
|
||||||
kodi_id = None
|
kodi_id = None
|
||||||
path = tryDecode(path)
|
path = try_decode(path)
|
||||||
try:
|
try:
|
||||||
filename = path.rsplit('/', 1)[1]
|
filename = path.rsplit('/', 1)[1]
|
||||||
path = path.rsplit('/', 1)[0] + '/'
|
path = path.rsplit('/', 1)[0] + '/'
|
||||||
|
|
Loading…
Reference in a new issue