Coder Social home page Coder Social logo

plex-richpresence's People

Contributors

arno500 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

plex-richpresence's Issues

Option to choose specific device "machine_id" only.

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.

App crashes when opening Plex

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

Building Project

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'

gitlab.com/Arno500/plex-richpresence

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:

RPC doesn't always show

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.

App crashes

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!

"Access is denied." error with a home user account

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.

Crash when changing episodes

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

Crashes when Discord isn't open

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

Music playing from Plexamp only updates time and not title / artist.

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!

Suggestion - Add title of episode

Hi,

Currently, it only shows the Season and episode number like this.

image

Would be nice so that it also shows the episode name, like this:

image

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!

Unable to select servers, no rich presence created.

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:
image

Config looks looks like this:

{
	"timeMode": "elapsed",
	"clientId": "[redacted]",
	"accessToken": "[redacted]",
	"pin": {
		"id": 123456789,
		"code": "[redacted]"
	},
	"enableNewDevicesByDefault": true,
	"selectedDevices": [
		{
			"name": "",
			"enabled": true,
			"product": "",
			"title": ""
		}
	]
}

App crashes

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

Client timeout error on launch every time

debug_log.txt

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!

Suggestion - add so album photo comes up instead of Plex logo

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.

image
image
So that album image instead of the plex icon. Would be great, thanks again!

Add Discord riich button for the Share link

Hi, i don't no if it's possible, but plex add a new feature for generate a link in Plexamp :
image

The link redirect to the album trqck list like this :
image

that wouldd be great if you add this whis a discord riich presence button under the music (if it's possible)

Thanks :)

[Suggestion] Change color of small icons

image

Currently, the small pause/play icons are black, which looks pretty bad against the dark background that Discord uses (probably >95% of Discord users use the default dark theme). I'd suggest making these light gray or some other color that contrasts better, but maybe still works well for those 5 light mode users out there. Or maybe a yellowish-orange would work well?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.