arno500 / plex-richpresence Goto Github PK
View Code? Open in Web Editor NEWA fast and lightweight Plex app for Discord Rich Presence
A fast and lightweight Plex app for Discord Rich Presence
Currently all the client devices playing media from a specific plex server and user is being detected.
In my case, i share my main plex account with friends and family for various reasons.
So whatever they play is being detected too.
Would love for an option to whitelist only specific devices to being detected.
Sadly, I haven't been able to use the app at all.
When opening Plex, the app crashes.
Here are the logs:
2021/12/11 01:59:38 Detected language: pt
2021/12/11 01:59:38 Refreshing servers
2021/12/11 01:59:38 We never had an access token, generating it
2021/12/11 01:59:38 We never had a pin on Plex, creating one
2021/12/11 01:59:38 The client identifier has never been set. Generating one.
2021/12/11 01:59:39 Waiting for user authentication
2021/12/11 01:59:41 Bananaflix: Trying to connect to 192-168-1-91.b038c9a836c9486b861630a7697d6402.plex.direct:32400
2021/12/11 01:59:41 rho: Trying to connect to 192-168-0-144.880f9bb2f70245c2a40456395fc1a419.plex.direct:32400
2021/12/11 01:59:41 rho: 192-168-0-144.880f9bb2f70245c2a40456395fc1a419.plex.direct:32400 was successfully contacted
2021/12/11 01:59:42 Bananaflix: Trying to connect to 176-79-71-141.b038c9a836c9486b861630a7697d6402.plex.direct:11146
2021/12/11 01:59:42 Bananaflix: 176-79-71-141.b038c9a836c9486b861630a7697d6402.plex.direct:11146 was successfully contacted
2021/12/11 01:59:43 Sucessfully connected to found WebSocket links
2021/12/11 02:00:03 json: cannot unmarshal number into Go struct field MetadataV1.MediaContainer.Metadata.addedAt of type string
Hi,
I would like to get my current music info to display in OBS, is it possible to save the title of the music, the album and the artist in a text file and the cover image of the album in a folder ?
Thanks
Hello ! I would like make a build of the project but after few hours, i'm stay blocked with that :
PS go build -tags windows -ldflags='-s -w -H=windowsgui'
C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:C:\Users\DefiD\AppData\Local\Temp\go-link-2419147679\000000.o: file format not recognized; treating as linker script
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:C:\Users\DefiD\AppData\Local\Temp\go-link-2419147679\000000.o:1: syntax error
collect2.exe: error: ld returned 1 exit status
Any idea for how unlock that ?
Thank you c:
Sometimes the it shows and most times it doesn't. I couldn't get the app to show the RPC consistently. I don't know if you have to open the plex-rpc app first then discord and plex itself or vice versa.
Hi, running latest version of both plex-richpresence, Plex Server and Plex client.
Can't open the app, it crashes on startup.
Log file:
2022/02/19 20:43:23 Detected language: en
2022/02/19 20:43:23 Refreshing servers
2022/02/19 20:43:23 plexserver: Trying to connect to 192-168-0-33.f62364bfda8c4d56b037578ca86c7ac1.plex.direct:32400
2022/02/19 20:43:23 plexserver: 192-168-0-33.f62364bfda8c4d56b037578ca86c7ac1.plex.direct:32400 was successfully contacted
2022/02/19 20:43:23 Sucessfully connected to https://192-168-0-33.f62364bfda8c4d56b037578ca86c7ac1.plex.direct:32400 WebSocket
2022/02/19 20:43:28 json: cannot unmarshal array into Go struct field MetadataV1.MediaContainer.Metadata.rating of type float64
In a closed issue I saw that another user was experiencing the same problem and got fixed by updating to version 1.2.0. I tried that one and same error.
Any clue? Thanks in advance & thanks for this software!
2022/01/16 13:23:56 Detected language: en
2022/01/16 13:23:56 Refreshing servers
2022/01/16 13:23:58 Plex: Trying to connect to IP
2022/01/16 13:23:58 Plex: IP was successfully contacted
2022/01/16 13:23:58 Sucessfully connected to https://IP WebSocket
2022/01/16 13:24:02 A seeking or a media change was detected, adjusting
2022/01/16 13:24:02 Access is denied.
Could be related to the fact that my account is under a home with a few other users, and the app doesn't know which user I am from the Select User
page. If that is the case, having this functionality enabled would be quite lovely.
Hello,
The app is crashing sometimes while change episodes, might not be a crash bc theres is nothing on the logs, but sometimes, i do have to open it again after i go to the next episode.
debug log:
2022/12/16 21:06:25 Refreshing servers
2022/12/16 21:06:30 Discord activity set
2022/12/16 21:06:40 Discord activity set
2022/12/16 21:06:50 Discord activity set
2022/12/16 21:07:00 A seeking or a media change was detected, adjusting
2022/12/16 21:07:00 Discord activity set
2022/12/16 21:07:10 Discord activity set
2022/12/16 21:07:20 Nothing is playing, closing connection to Discord. //Crash?
2022/12/16 23:16:13 Detected language: en //Only noticed after some time
2022/12/16 23:16:14 Checking for updates...
2022/12/16 23:16:17 [AutoUpdater] Local Version 1.6.2 - Remote Version: 1.6.2
2022/12/16 23:16:17 Refreshing servers
2022/12/16 23:16:19 ****: Trying to connect to ****:443
2022/12/16 23:16:19 ****: ****:443 was successfully contacted
2022/12/16 23:16:19 Sucessfully connected to https://****:443 WebSocket
2022/12/16 23:16:32 A seeking or a media change was detected, adjusting
2022/12/16 23:16:32 Debug: Posting to URL https://api.imgur.com/3/image
2022/12/16 23:16:34 Discord activity set
2022/12/16 23:16:34 Discord activity set
2022/12/16 23:16:42 Discord activity set
2022/12/16 23:16:43 Discord activity set
2022/12/16 23:16:52 Discord activity set
2022/12/16 23:17:02 Discord activity set
2022/12/16 23:17:12 Discord activity set
When the program is running while Discord isn't open, and then I start playing something on Plex, the program crashes. Here's the output I get in the terminal:
goroutine 56 [running]:
log.Panicln({0x14000798958?, 0x3?, 0x10?})
/opt/homebrew/Cellar/go/1.18.2/libexec/src/log/log.go:399 +0x68
gitlab.com/Arno500/plex-richpresence/discord.InitDiscordClient()
/Users/hotsno/Developer/plex-richpresence/discord/main.go:26 +0x64
gitlab.com/Arno500/plex-richpresence/discord.SetRichPresence({{{0x14000388b60, 0x3}, {0x14000388b66, 0x7}, 0x15b28d, {0x0, 0x0, 0x0}, 0x7, 0x1, ...}, ...}, ...)
/Users/hotsno/Developer/plex-richpresence/discord/main.go:149 +0xc88
gitlab.com/Arno500/plex-richpresence/plex.StartWebsocketConnections.func2({{0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x140002fc780, ...}, ...})
/Users/hotsno/Developer/plex-richpresence/plex/main.go:220 +0x39c
github.com/Arno500/go-plex-client.(*Plex).SubscribeToNotifications.func1()
/Users/hotsno/go/pkg/mod/github.com/!arno500/[email protected]/websocket_client.go:234 +0x14c
created by github.com/Arno500/go-plex-client.(*Plex).SubscribeToNotifications
/Users/hotsno/go/pkg/mod/github.com/!arno500/[email protected]/websocket_client.go:205 +0x228
Hi,
When playing music on Plexamp, currentPlayState.session seems to only get set on the first song, with subsequent songs not getting their titles/artists updated.
Seems to work fine on Firefox Web though.
The last release did improve the time remaining/elapsed though, which is much appreciated!!
Thanks, keep up the good work!
Hi,
Currently, it only shows the Season and episode number like this.
Would be nice so that it also shows the episode name, like this:
Maybe also capitalize the E from episode.
It's only a minor suggestion but it would be really nice, I prefer your software above the other rich presence one.
Thanks in advance and have a nice day!
2022/03/06 08:15:05 Detected language: en
2022/03/06 08:15:05 Refreshing servers
2022/03/06 08:15:05 We never had an access token, generating it
2022/03/06 08:15:05 We never had a pin on Plex, creating one
2022/03/06 08:15:05 The client identifier has never been set. Generating one.
2022/03/06 08:15:07 Waiting for user authentication
2022/03/06 08:15:12 Server A: Trying to connect to 172[obfuscated]dab7.plex.direct:32400
2022/03/06 08:15:12 Server B: Trying to connect to 192[obfuscated]bc20.plex.direct:32400
2022/03/06 08:15:13 Server A: 172[obfuscated]dab7.plex.direct:32400 was successfully contacted
2022/03/06 08:15:13 Server B: Trying to connect to 47[obfuscated]bc20.plex.direct:[redacted]
2022/03/06 08:15:13 Server B: 47[obfuscated]bc20.plex.direct:17541 was successfully contacted
2022/03/06 08:15:13 Sucessfully connected to https://172[obfuscated]dab7.plex.direct:32400 WebSocket
2022/03/06 08:15:13 Sucessfully connected to https://47[obfuscated]bc20.plex.direct:[redacted] WebSocket
2022/03/06 08:15:18 Couldn't connect or lost connection to Server B
2022/03/06 08:15:19 Couldn't connect or lost connection to Server A
2022/03/06 08:15:19 Couldn't connect or lost connection to Server B
2022/03/06 08:15:20 Couldn't connect or lost connection to Server A
...repeats 3 times...
2022/03/06 08:15:22 Couldn't connect or lost connection to Server B
2022/03/06 08:15:23 Couldn't connect or lost connection to Server B
2022/03/06 08:15:24 Added new device (, )
2022/03/06 08:16:13 Refreshing servers
...repeats 3 times...
Server A is local and Server B is remote.
Playing media on either of them doesn't create any "Playing..." status on discord.
Server select menu just appears like this:
Config looks looks like this:
{
"timeMode": "elapsed",
"clientId": "[redacted]",
"accessToken": "[redacted]",
"pin": {
"id": 123456789,
"code": "[redacted]"
},
"enableNewDevicesByDefault": true,
"selectedDevices": [
{
"name": "",
"enabled": true,
"product": "",
"title": ""
}
]
}
Sad to say that I'm back, only this time I have no information at all about the crash. The logs don't show anything interesting.
Plex for Windows: Version 1.39.1.2763-300bb607
Plex Media Server: Version 1.25.2.5319
Hello,
Not sure what happened. I downloaded this for the first time yesterday and it was working fine. The service stayed open and running without issue whether I was actively on my PC or not - and I noticed it automatically my discord status when I started watching something even on new client - Everything working as it should essentially.
But today I start Plex and notice my discord status didn't update. Went to my PC and the Plex Rich Presence icon was no longer in the hidden icons menu on the task bar. Thought maybe my PC restarted so I re-opened it and set it to start on log in. Went back to play something and again my status didn't update. Went back to my PC and again PRP was closed. Opened it again and observed itself close out after 5-10 seconds. Tried again and same thing kept happening - I open it from the .exe, icon appears on my taskbar and it disappears 10 seconds later. Deleted the AppData folder and the .exe and redownloaded it. Signed back into Plex like the initial set up and again, it closed out after 10 seconds.
Not sure what would cause this - Not changes/updates to either my PC, Plex Server or Network.
Plex Server is local
I'm the admin
Only watching on local clients
Have Plex Pass
Plex Server is on Win 10
Personal PC with PRP/Discord is on Win 11
Let me know if you need anything else, thank you!
Would look awesome with this suggestion, https://github.com/Ombrelin/plex-rich-presence/ manages to do it but their one doesn't work with the Plex Windows App, yours does though and it's only like ....7 MB compared to their 70MB one.
Anyways thanks for this app, it's amazing! That's the only thing personally I think is missing, album photo on rich presence instead of the plex icon.
So that album image instead of the plex icon. Would be great, thanks again!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.