Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Plex and Emby support? #2

Closed
morpheus65535 opened this issue Jan 23, 2018 · 17 comments
Closed

Adding Plex and Emby support? #2

morpheus65535 opened this issue Jan 23, 2018 · 17 comments

Comments

@morpheus65535
Copy link

morpheus65535 commented Jan 23, 2018

First, I would like to thank you for wrapping up all those notification systems in one single and easy to use module.

I'm currently integrating it in Bazarr and I was wondering if you would like to add support for Plex and Emby?

Thanks again and keep up the good work! :-)

@caronc caronc self-assigned this Jan 23, 2018
@caronc
Copy link
Owner

caronc commented Jan 23, 2018

Let me look more into this. In the past i was asked to do Plex support and when i investigated it further i found out that i couldn't. The problem is Plex notifications are used to signal directories that it should search for new/updated content in. It's notifications aren't for relaying popups or notices (in a form of text to a user). That's not quite what apprise is for. apprise is specifically text notifications. It's been a while since this topic came up (about Plex); so maybe it supports actual text based notifications now?

Emby is a good suggestion; i'll look it up and see if it's possible to integrate with. At this time i don't know much about it.

@morpheus65535
Copy link
Author

I don't know for Plex (I don't develop for it) but for Emby you can take a look at "DisplayMessage" in the RemoteControl API: https://github.com/MediaBrowser/Emby/wiki/Remote-control

@caronc
Copy link
Owner

caronc commented Mar 4, 2018

@morpheus65535 Thanks for all of your help (that wiki link got me started). I made a massive headway today and have almost completed the Emby notification support. I ran into a critical issues though which i opened a support ticket to (here). I'll await their feedback to hopefully get past this roadblock.

I'll hopefully start on Plex support next week (if it's even possible).

@morpheus65535
Copy link
Author

Thanks to you! You module really saved me a lot of time when I was trying to add notification to bazarr. If you need some to test emby integration, just contact me!

@caronc
Copy link
Owner

caronc commented Mar 5, 2018

Just so you know, I didn't get very far with Plex so i turned to the community. For tracking this (this ticket seems to be the best place for it), here is the link to my inquiry.

caronc added a commit that referenced this issue Mar 6, 2018
caronc added a commit that referenced this issue Mar 7, 2018
@caronc
Copy link
Owner

caronc commented Mar 7, 2018

Emby support is complete! Your Plex request is looking a little less promising. I'm not quite sure if such a functionality still exists or not (and if i can tap into it). This article here is quite interesting and shows that just a little over a year ago, this was indeed possible. I tried to implement this and failed (so somewhere along the lines this isn't do-able any-more).

@albino1
Copy link

albino1 commented Mar 7, 2018

Tautulli (AKA PlexPy) has a variety of notifications for just about everything, including methods for making your own custom notifications, maybe take a look at that:

https://github.com/Tautulli/Tautulli

plexpynotif

plexpynotif2

@caronc
Copy link
Owner

caronc commented Mar 7, 2018

Hey @albino1, thanks for your feedback! I've bookmarked their repository so I can fill in what they have that I don't (which seems to be Facebook, IFTTT, and HipChat - which I've already started poking at last night).

I'm not sure what Scripts and Browser is, but i guess when i peek at their code, I'll find out! 😄

The Plex Home Theatre is also an interesting one as i still haven't found a documented or any viable method to talk to Plex (specifically for Notifications). Their API is documented and used everywhere if i want to stop, play or pause a video; or even just rescan a library. But notifications don't seem to be possible. I'll be curious what Tautulli is doing there.

Edit: So it turns out Plex Home Theatre is nothing but a Kodi Server listening on a different default port. So since I already have kodi:// I'm covered here.

Thanks again for the share!

@caronc
Copy link
Owner

caronc commented Apr 5, 2018

@morpheus65535 I think we're going to have to write off Plex support. It still doesn't appear to have any notification support. There isn't much luck with the community either. But hey!... If you come up with any more ideas please let me know!

Since this ticket I've added Stride support (previously Hipchat) and IFTTT support too which pretty much knocks everything off of @albino1's list except Facebook. I started adding support for Facebook too until this recent scandal they got caught in. As a result, they've disabled most of their back-end and api right now 🙄 making it unusable (especially for notifications). I'll resume it's implementation when they turn their messaging features back on (specifically the private messaging one).

So if you guys are alright with it; I'm going to close this ticket.

@morpheus65535
Copy link
Author

@caronc Thank you for your hard work on apprise!

Have you taken a look to this webpage regarding plex notification?
https://durdle.com/2017/01/05/plex-client-notifications-via-powershell/

@caronc
Copy link
Owner

caronc commented Apr 5, 2018

Yeah, it's the same link I posted to the Plex community and identified above (about 3 comments back). It doesn't work any more. It's like they had an undocumented Plex notification feature that they since removed/disabled (within the past year). It might still work for an older or very specific version of Plex. I'll ping (@hdurdle) the author of the blog and get his feedback.

@morpheus65535
Copy link
Author

Oh... my bad. If you want to push a little more, do it but you already put a lot of time on this feature request. Thanks!

@hdurdle
Copy link

hdurdle commented Apr 6, 2018

Plex Home Theatre itself has been unsupported by Plex for some time, and all the modern UI clients they do support are missing the old client underpinnings with the mostly undocumented API. Until and unless Plex want to support these kinds of notifications in their first party clients, I expect you’re out of luck.

@caronc
Copy link
Owner

caronc commented Apr 8, 2018

@hdurdle Thanks for your response. Just one follow up question: Your blog makes mention of http://client:3005/jsonrpc as part of the Plex Client API. Was this closed off recently? I'm not too concerned about the death (and/or loss of support) of Plex Home Theatre as I am the ability to send a notification to a live video being played via Plex. If i were to borrow your screen shot from your blog, this is what i'm still trying to achieve (if at all possible):
plex-shot-1024x576

Was the client (hostname) you referenced in your 2017 blog entry part of Plex (maybe a specific version), or to the Plex Home Theatre? Or was it another plugin you needed to acquire? I'm using Plex today but if i run a netstat on the service, i only see the following ports open:

tcp        0      0 0.0.0.0:1838            0.0.0.0:*               LISTEN      2674/Plex DLNA Server 
tcp        0      0 0.0.0.0:32400           0.0.0.0:*               LISTEN      1761/Plex Media Server 
tcp        0      0 127.0.0.1:32401         0.0.0.0:*               LISTEN      1761/Plex Media Server 
tcp        0      0 0.0.0.0:32469           0.0.0.0:*               LISTEN      2674/Plex DLNA Server 
tcp        0      0 127.0.0.1:43044         0.0.0.0:*               LISTEN      2268/Plex Plug-in [com.plexapp.system]

None are listening on 3005 nor do the ones that are listed respond to the RPC calls similar to the ones you made in your blog last year.

I was just curious of your thoughts?

@hdurdle
Copy link

hdurdle commented Apr 9, 2018

The jsonrpc API was part of PHT only, and none of the modern clients include anything like it. This was always a client side solution making use of a historical quirk of how they built the original PHT.

@caronc
Copy link
Owner

caronc commented Apr 9, 2018

Thanks a lot for your insight @hdurdle!

@morpheus65535, I think native Plex notifications can be scratched off the list. Those who have an old version of PHT can just use the apprise syntax kodi://client:3005 and everything should work fine.

I'm going to close this ticket but if you can think of other services the app your working on could use, just let me know. I'd be happy to try and add support in apprise for you!

@caronc caronc closed this as completed Apr 9, 2018
@morpheus65535
Copy link
Author

Thanks! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants