Merge pull request #1263 from croneter/fix-attributeerror

Fix AttributeError: module has no attribute try_decode
This commit is contained in:
croneter 2021-01-03 13:59:15 +01:00 committed by GitHub
commit d2985925c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,6 @@ def kodiid_from_filename(path, kodi_type=None, db_type=None):
Returns None, <kodi_type> if not possible Returns None, <kodi_type> if not possible
""" """
kodi_id = None kodi_id = None
path = utils.try_decode(path)
# Make sure path ends in either '/' or '\' # Make sure path ends in either '/' or '\'
# We CANNOT use path_ops.path.join as this can result in \ where we need / # We CANNOT use path_ops.path.join as this can result in \ where we need /
try: try: