tccoin / Jellyfin-Potplayer

Play with Potplayer
106 stars 26 forks source link

Invalid file path when a remote SMB path set in Jellyfin Library #6

Open EdiTurn opened 2 years ago

EdiTurn commented 2 years ago

As I need to use Jellyfin Native-mode in kodi, I have set up remote path to the jellyfin library (following this doc: https://jellyfin.org/docs/general/clients/kodi.html#native-mode). After that, the path which Jellyfin-Potplayer sent to Potplayer would be like //SMB-SERVER/path/to/video.file, so Potplayer can't play due to the slash.

EdiTurn commented 2 years ago

This issue could be fixed by just adding $path=$path -replace "/" , "\" to the ps1 file. But seems not available for the other two remote type. (NFS & mounted share, also mentioned in that doc. )

YifeiLu-1 commented 2 years ago

This solved my problem.

tccoin commented 2 years ago

@EdiTurn I don't use Jellyfin anymore so I don't have too much time working on this script. It will be nice if you can update the Readme file with your discovery and create a pull request. I will be happy to merge them if this can help others. Thank you.