Skip to content

Commit

Permalink
Fix direct paths in external mpv. (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Feb 19, 2023
1 parent a82ebe9 commit 6195f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin_mpv_shim/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _get_url_from_source(self):
# translate path for windows
# if path is smb path in credential format for kodi and maybe linux \\username:password@mediaserver\foo,
# translate it to mediaserver/foo
return pathlib.Path(self.media_source["Path"])
return str(pathlib.Path(self.media_source["Path"]))
else:
# If there's no uri scheme, check if the file exixsts because it might not be mounted
if os.path.isfile(self.media_source["Path"]):
Expand Down

0 comments on commit 6195f13

Please sign in to comment.