mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-10 02:16:36 +00:00
sonarcloud feedback
This commit is contained in:
parent
7baeb716a8
commit
6c61700c2b
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ class API(object):
|
||||||
path = path.replace(protocol, protocol.lower())
|
path = path.replace(protocol, protocol.lower())
|
||||||
|
|
||||||
if path.startswith('http') or path.startswith('ftp') or path.startswith('sftp') or path.startswith('dav'):
|
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:
|
if rs:
|
||||||
path = rs.group(1) + urlquote(rs.group(2))
|
path = rs.group(1) + urlquote(rs.group(2))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue