PlexExternalPlayer
PlexExternalPlayer copied to clipboard
Plex External Player doesn't work
Hi, I've installed both agent and script but it somehow still doesn't work. I'd be appreciate if anyone can help? Report: Plex External Player Error calling: undefined/library/metadata/1169?includeConcerts=1&includeExtras=1&includeOnDeck=1&includePopularLeaves=1&includePreferences=1&includeChapters=1&asyncCheckFiles=0&asyncRefreshAnalysis=0&asyncRefreshLocalMediaAgent=0. Response: 404 Not Found Code:404 Message: Not Found
Could be an issue with getting the server list. You can try the workaround described here: https://github.com/Kayomani/PlexExternalPlayer/issues/50#issuecomment-792254793
Thanks, after adding that line it did shown Plex External Player, but Potplayer still has no activity after clicking "Play External" & "Open Folder". Thanks again for your help!
Hi, it still doesn't work for me after editing the setTimeout part. Now there is totally no reaction after clicking on Play Externally button....
me too
You could try this https://gist.github.com/Xeiniac/c6f764a251092d7e6c3033bc4b3e4b84, I used code form 1.18 for the parts that caused the error, Until it's fixed I guess it's a workaround. It works for me so you can try it 👀
@balle13 @ericvlog sorry to leave you hanging for so long. I've had a lot of things to deal with the last couple months.
What script extension are you using? Tampermonkey or something else? I was playing around a bit trying the reproduce the behavior and one way I found was if cross-origin resource requests are blocked.
Tampermonkey should ask you to allow them. If you happen to have blocked them in the past you can check in the settings page of the script if there are any entries under "user domain blacklist" and remove them.
Hi, it doesn't work for me either, I've got these messages :
The second one is the error sent by Plex External Player Agend.
The path seems weird, I am on windows, not on Linux.
@lazollz you need to add the drive mapping to the script. It's described at the end of the readme. Look for the part with "Find the following chunk in the script, and add the indicated line"
@1LucKyLuke I'm having one issue with this solution: since I'm already using the replace function to access the files, I've lost the plus sign replacement, which I need. Is there a way to use both?
Many thanks for everything!
PS: I'm using the modified code in https://gist.github.com/Xeiniac/c6f764a251092d7e6c3033bc4b3e4b84 for the same reason as the original poster.
@yepyepyep4711 what do you mean with you lost plus sign replacement? Do you mean you were already using a replace function? There should be no issue with chaining multiple replace functions.
Re the modified code: take a look at the posters comment here and try to switch back to the original code.
@1LucKyLuke Re plus sign replacement, there's this line in the current code:
// umicrosharp doesn't handle plus properly
path = path.replace(/\+/g, '[PLEXEXTPLUS]');
that does just that. Since I need that line to actually replace the path, as indicated in the readme, I had lost the plus sign. But yes, you're right, just adding a new line with an additional replacement works fine. For anyone looking for this, it looks like this:
// umicrosharp doesn't handle plus properly
path = path.replace(/\+/g, '[PLEXEXTPLUS]');
path = path.replace('\/home\/user\/media', 'E:\\');
Re modified code, nope. Reverted to the original, reloaded a bunch of times, restarted the browser, still didn't work, fixed the "undefined" issue with https://github.com/Kayomani/PlexExternalPlayer/issues/50#issuecomment-792254793, then the path replacement with the above code, still getting the error messages. Went back to the modified code, one reload, works. ¯_(ツ)_/¯
But many thanks for the first bit, though, I now have a working solution :)