Skip to content

Commit

Permalink
revert regex - doesn't work with kodi
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson committed Aug 28, 2023
1 parent 6c61700 commit 937bfaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin_kodi/helper/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 219 in jellyfin_kodi/helper/api.py

View check run for this annotation

Codecov / codecov/patch

jellyfin_kodi/helper/api.py#L219

Added line #L219 was not covered by tests
if rs:
path = rs.group(1) + urlquote(rs.group(2))

Check warning on line 221 in jellyfin_kodi/helper/api.py

View check run for this annotation

Codecov / codecov/patch

jellyfin_kodi/helper/api.py#L221

Added line #L221 was not covered by tests

Expand Down

0 comments on commit 937bfaf

Please sign in to comment.