mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-09 18:06:35 +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())
|
||||
|
||||
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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue