Kayomani / PlexExternalPlayer

Allows you to use Plex to browse your media then play the files in your favorite media player (where the files are local).
GNU General Public License v3.0
115 stars 13 forks source link

Greasemonkey 4.0 support #17

Open satsukiyatoshi opened 6 years ago

satsukiyatoshi commented 6 years ago

Hello I've done a fresh install form the lastest version of plex on my linux mint. Plex working great but i can't get the external player to works. I get the following error (lastest firefox, lastest scrip and agent and lastest plex server) screenshot009 My plex server is used and set up in home lan only. Here's my linux plex service config file (if needed): Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/Archiv4/System/PlexDB/Library/Application Support/" Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"' ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"' Type=simple User=plex Group=plex Restart=on-failure RestartSec=5 StartLimitInterval=60s StartLimitBurst=3

Thanks for your works !

Kayomani commented 6 years ago

Which script runner are you using? Tampermonkey?

satsukiyatoshi commented 6 years ago

i'm using greasemonkey (lastest version)

Kayomani commented 6 years ago

Looks like they changed the api in 4.0 a bit.

Can you replace GM_xmlhttpRequest with GM_xmlHttpRequest and let me know if it works (capital h)? I tried installing greasemonkey but it didn't seem to work right for me.

satsukiyatoshi commented 6 years ago

Same bug with the GM_xmlHttpRequest The message is 100% the same, it's saying : "GM_xmlhttpRequest" and not "GM_xmlHttpRequest" Cheched my script and reboot and in my script it's "GM_xmlHttpRequest" as you asked me to test. It seems its not the casse of the function name witch isn't right but the function itselft doens't seems to works the right way...

Kayomani commented 6 years ago

Hmm ok - I'll have a look after the holidays. In the short term use Tampermonkey. I would have thought most of the issues would be around using mono to run the agent on Linux.

satsukiyatoshi commented 6 years ago

I'll try tampermonker. My plex server is in linux but my player is in windows so no need for mono for the agent in my computer ^^

satsukiyatoshi commented 6 years ago

Working great with tampermokey. My others scripts working with tampermonkey too so i'll keep tamper instead of grease ^^

Thanks a lot for your help