[SUPPORT] Tenasi - PlexAnnouncer


Recommended Posts

1 hour ago, Valiran said:

Hello!

 

I'm having a problem here.

I can't figure how to make the bot join the Discord server.

Everything is configured OK, logs show:

 

======== Running on http://0.0.0.0:32500 ========
(Press CTRL+C to quit)
Plex webhook URL: http://localhost:32500/6s8r7t165sr7t1vf6s5r7t

 

But no bot in discord server. What did I miss? :)

Capture d’écran 2021-05-13 à 12.13.02.png

I think your problem is "plex webhook Token"
It should look like: http://localhost:32400/6s8r7t165sr7t1vf6s5r7t

if you didnt change the port.

Link to comment

No his port is fine, it's the port PA is using (32500). What port Plex uses (32400 per default) doesn't matter here.

 

I think everything is working here. PA is using Discord Webhooks which work fundamentally different then bots. You will for example never see a Webhook join your server, like a bot does. The message Plex send to your server will look like they were send by a bot called Plex (or however you configured your Webhook) but they were actually send using a web request to the Webhook URL you specified in your PA config.

 

Hope this clarifies it :)

  • Thanks 1
Link to comment
  • 1 month later...

does anyone else keep getting this error

 

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"

 

Link to comment

Hi I was wondering if I could get some help. Whenever I play or resume anything or add anything new under movies or tv, all I get is a thumbnail in Discord no text at all. I have attached a pic of how it displays:

Capture11.JPG.4ccb52cc7e60c856b50afe557d9e9e05.JPG

 

I have monitored my log file after adding something new to plex and my log file never changes.

log.JPG.490582f8c50ae6bc6787b35245681b23.JPG

 

 

Obviously it's connected and communicating but why am I only getting the thumbnail? I would appreciate any assistance. Thanks!

Link to comment
10 hours ago, Wizaro said:

Obviously it's connected and communicating but why am I only getting the thumbnail? I would appreciate any assistance. Thanks!

 

Check your config again, you've probably inserted your Discord Webhook URL instead of the local PA URL (shown in the first line of your log) in your Plex settings.

Link to comment
9 hours ago, JohnnyP said:

 

Check your config again, you've probably inserted your Discord Webhook URL instead of the local PA URL (shown in the first line of your log) in your Plex settings.

I got that entry from the URL of the XML file of one of my movies but apparently that token changes cause I opened a movie today the same way and that token had changed to this:
token.jpg.0929879b905cb6c0208595a02075d9b0.jpg

 

I tried changing it to the token above and the behavior didn't change, still just shows the thumbnail in discord.

 

Heres my current config:
Capture12.thumb.JPG.e7b66144ed019c27742fd0ec448211c2.JPG

Link to comment
23 hours ago, Wizaro said:

I got that entry from the URL of the XML file of one of my movies but apparently that token changes cause I opened a movie today the same way and that token had changed to this:
token.jpg.0929879b905cb6c0208595a02075d9b0.jpg

 

I tried changing it to the token above and the behavior didn't change, still just shows the thumbnail in discord.

 

Heres my current config:
Capture12.thumb.JPG.e7b66144ed019c27742fd0ec448211c2.JPG

Ok, so the PLEX_WEBHOOK_TOKEN can literally be anything you want, just type some random value in here. This token is then used in the URL, where PlexAnnouncer is listening for incoming Webhooks from Plex. So in your case: http://localhost:32500/1fkD...

 

You then need to put this URL in your Plex settings, where you added the Webhook. From the behavior of your issue I guess that you added the Discord Webhook URL instead here. That's how it looks in my config:

Screenshot_20210716-012119.png.41007d1b9158fbdfe8f6deaaed2ca36a.png

 

Note: You may have to replace localhost with the IP address of PlexAnnouncer (like I did) if they aren't run on the same host.

 

 

 

  • Thanks 1
Link to comment
56 minutes ago, JohnnyP said:

Ok, so the PLEX_WEBHOOK_TOKEN can literally be anything you want, just type some random value in here. This token is then used in the URL, where PlexAnnouncer is listening for incoming Webhooks from Plex. So in your case: http://localhost:32500/1fkD...

 

You then need to put this URL in your Plex settings, where you added the Webhook. From the behavior of your issue I guess that you added the Discord Webhook URL instead here. That's how it looks in my config:

 

 

Note: You may have to replace localhost with the IP address of PlexAnnouncer (like I did) if they aren't run on the same host.

 

 

 

 

You were 100% right! Thats exactly what I did, working now thanks so much!!!

  • Like 1
Link to comment
  • 1 month later...

Ok I am at a loss.  I feel like I have everything set up correctly but not getting push notifications in Discord channels.  Here's what I got:

image.png.74d56334f955311b0d2d8cd03b07020c.pngimage.png.51f2957b130aa93d1667a501731c7aeb.pngimage.png.c9fd060af4a23e537195e6c88973a0a8.png So I think I have my Plex settings right.  Here's my docker settings:

image.png.679f9d82c2dfefe2dba4aa1743baf932.png

image.png.20db489a82f583224c11c0a3ec2f7466.png

 

And of course the Discord Webhook URL matches the "copy webhook URL" from discord.  

 

Finally, checking the logs of PlexAnnouncer, it is running and I see:

image.png.049505130871f5a20097dc6e0ba80eb7.png --- That's it.  

 

I added a couple shows to one of my libraries in Plex and nothing showed up in Discord.  What did I do wrong?

 

 

Edited by Hawkins12
Remove duplicate attachment
Link to comment
37 minutes ago, jamerperson said:

It has to be something new. Removing and re-adding a movie will not trigger an event.

I just added a new TV series to my TV Series folder.  Nothing came through to discord.  Is there generally a delay?

 

I also added a new movie too.  Still didn't report to discord

Edited by Hawkins12
Link to comment

Hmm, looks alright at first glance. Stupid question, but are you able to communicate from the Plex container to the PlexAnnouncer container? Try running the following from inside you Plex container:

curl -X POST 192.168.40.201:32500/PLEX_WEBHOOK_TOKEN

Obviously replace PLEX_WEBHOOK_TOKEN with your token. You should see something like this in your PA logs:

image.png.e17bced66c7c9b497de3fb087ff8c85a.png

 

 

Link to comment
5 hours ago, JohnnyP said:

Hmm, looks alright at first glance. Stupid question, but are you able to communicate from the Plex container to the PlexAnnouncer container? Try running the following from inside you Plex container:

curl -X POST 192.168.40.201:32500/PLEX_WEBHOOK_TOKEN

Obviously replace PLEX_WEBHOOK_TOKEN with your token. You should see something like this in your PA logs:

image.png.e17bced66c7c9b497de3fb087ff8c85a.png

 

 

Looks like something's amiss.  Here is the results -- I ran twice for good measure.  I did replace the IP with my internal IP for the plex container (and webhook) as well.  

image.png.4e910c7a8c928564a7ef086f13f2ddf6.png

Link to comment
7 minutes ago, Hawkins12 said:

Looks like something's amiss.  Here is the results -- I ran twice for good measure.  I did replace the IP with my internal IP for the plex container (and webhook) as well.  

image.png.4e910c7a8c928564a7ef086f13f2ddf6.png

Ok, disregard, I checked the logs of the PlexAnnouncer container and I did get the result you postedimage.png.5a1d3eff63ffe2cab26eaa0ba83431bb.png

 

And in the process, I think I figured out the issue.  In Plex Settings, I added:

image.png.ca6fa89f1d992d605d18b59be3a22fcf.png

 

I think this needs to read :32500 and not :32400.  I just need to test it.  

Edited by Hawkins12
Link to comment
  • 4 months later...
  • 2 months later...

Was there a recent change to Discord/Plex/PA with respect to the service.  My PA was working perfectly for months and on March 3rd, it stopped updating in discord.  No changes to settings in PA, Discord, or Plex.  I tried to re-config (start from scratch) and nothing is causing it to work again.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.