Closed kzzyn closed 4 years ago
Hi kyyzn, did you edit the path in potplayer.reg? If you didn't, please change C:\\Users\\Tccoin\\Codes\\jellyfin-potplayer\\potplayer.ps1
to your own path of "potplayer.ps1" and then install potplayer.reg again. Besides, it's not necessary to put the scripts in the installation folder.
And also, you may want to change this part in the js script:
let path = r.Path.replace(/\\/g, '/').replace('D:', 'Z:');
to:
let path = r.Path.replace(/\\/g, '/');
The function of "replace" is to correct the drive letter and it may not suit your situation. For me, I have the Jellyfin server on NAS and I want to play the video directly on my laptop. Thus I assign Z: to the NAS drive on my laptop and use this script to replace D: (which is the drive letter on NAS) in the video path to Z: (which is the drive letter on my laptop). The final path will be passed to Potplayer.
thank you for your time, tccoin. I changed the path in reg file and also changed the js script (deleted ".replace('D:', 'Z:')", but it is still not working. the blue (powershell) window pops-up for longer time now :)
I have found this in windows event viewer about powershell:
could this be the problem ? the path ?
edit: I tried also local disc without succes:
edit2: after some time it started working with local library, but not with library on NAS: in jellyfin I tried making library from local disc E: and it works. But libraries from NAS do not work. The potplayer starts correctly, but no file is open. I did not assign letter to the NAS, it is just a name \\Codex\....... Is it possible to change the script for this path or should I assign a letter to the Codex ?
@kzzyn In my opinion, assigning a letter to \Codex will be much easier. Just right click the icon of "This Computer" and choose the menu named "add a network location" (or something similar to it).
yes, after assigning letter to a folder on NAS it works. Thank you.
You are welcome.
I apologize for bumping a very old issue, let me know if you would like me to open a new issue instead.
I am having the same problem with ConnectionManager is undefined
and ApiClient is undefined
.
The regedit successful added the potplayer:// protocol handling, and if I directly enter an address like:
potplayer://localhost:8096/Items/a0e731206375627cda2e34fad7589610/Download?api_key=d948b800b182411799c525225aa2bd18
into the browser, the powershell script successfully runs and the video content plays.
But if I simply click to play, nothing happens in the browser and in the browser console I see these errors:
I cannot tell from the thread above how the undefined
errors were solved. Thanks for any help.
I apologize for bumping a very old issue, let me know if you would like me to open a new issue instead.
I am having the same problem with
ConnectionManager is undefined
andApiClient is undefined
.The regedit successful added the potplayer:// protocol handling, and if I directly enter an address like:
potplayer://localhost:8096/Items/a0e731206375627cda2e34fad7589610/Download?api_key=d948b800b182411799c525225aa2bd18
into the browser, the powershell script successfully runs and the video content plays.But if I simply click to play, nothing happens in the browser and in the browser console I see these errors:
I cannot tell from the thread above how the
undefined
errors were solved. Thanks for any help.
Yes, please open a new issue. I will look into this problem right now.
Edit: I tried the script with Jellyfin 10.5.2 and it works fine. Are you using some newer version?
Opened issue #3
Re: Jellyfin version - I was using: 10.7.5 - the latest windows stable.
I am trying to get this to work. I am not a developer, just a user. I am using the latest stable installer version of jellyfin on Windows Home. 1) I downloaded your files and extracted them into folder, changed path to potplayer.ps1 in potplayer.reg and ran the reg file (I checked the registry, the new values are there). 2) I installed Tampermonkey to Firefox (and tried Vivaldi, too), installed the script and changed the path to the jellyfin web-ui at the top. There are three yellow exclamation marks. They say that ConnectionManager and ApiClient are not defined:
I enabled the script and tried to play some videos but there is just a brief pop-up of blue (powershell) window, which closes immediately.
Will you please help? Can I do something to help troubleshoot this? I would really like to get this running. Thanks.
edit: or do I have to put the script in the installation folder of jellyfin ?