diff --git a/jellyfin_kodi/helper/api.py b/jellyfin_kodi/helper/api.py index b18d8fde7..dfd80ac71 100644 --- a/jellyfin_kodi/helper/api.py +++ b/jellyfin_kodi/helper/api.py @@ -216,7 +216,7 @@ def get_file_path(self, path=None): path = path.replace(protocol, protocol.lower()) if path.startswith('http') or path.startswith('ftp') or path.startswith('sftp') or path.startswith('dav'): - rs = re.search("(^.*://[^/]+)(.+)", path) + rs = re.search("(.*?://.+?/)(.+)", path) if rs: path = rs.group(1) + urlquote(rs.group(2))