Jump to content

Slack is Posting Notifications for Old Media as New Content


Recommended Posts

Posted

Try updating the plugin to 1.2.3

Posted

1.2.3 still broken with rocket.chat, will investigate it further tomorrow 🤷‍♂️
rocket logs show the payload arriving with no message content

Natilus13
Posted
15 hours ago, Luke said:

Try updating the plugin to 1.2.3

Finished the update, and the image checkbox is now showing. Despite selecting it, I am still not getting an image though. Here is what a post to Slack looks like for me... There is some tiny little icon, that is showing just above the text, that was not there before I selected the show image checkbox in the notification settings.

image.thumb.png.1e1cfeae7dd54f781ca05a32d660d238.png

I've attached a recent log file for you to review as well.

Thanks again for all the hard work and help @Luke 🙂

embyserver.txt

Posted

@LukeThis is the script that has worked with Rocket.Chat for years now:
https://github.com/ackbarr/Emby.Plugins/wiki/Supporting-Rocket.Chat

Seems the formatting changed with the 1.2.2 update, and again in 1.2.3. Instead of using Slack I am just doing a normal webhook now with this script set in Rocket (Claude helped), notifications work in Rocket.Chat again.

Just figured I'd post it here in case anyone else comes looking.
 

/* exported Script */
/* globals console, _, s */
/** Global Helpers
 * console - A normal console instance
 * _       - An underscore instance
 * s       - An underscore string instance
 */
class Script {
  /**
   * @params {object} request
   */
  process_incoming_request({ request }) {
    // Extract content
    const content = request.content;
    let messageText = '';
    
    if (content.Event === 'system.webhooktest') {
      messageText = `Test Notification: ${content.Title}`;
      if (content.Description) {
        messageText += `\n${content.Description}`;
      }
    } else {
      messageText = `${content.Title || 'New Event'}`;
      
      if (content.Description) {
        messageText += `\n${content.Description}`;
      }
      
      if (content.User && content.User.Name) {
        messageText += `\nUser: ${content.User.Name}`;
      }
    }

    return {
      content: {
        text: messageText
      }
    };
  }
}


 

Posted
On 3/6/2025 at 10:14 AM, Dazik said:

@LukeThis is the script that has worked with Rocket.Chat for years now:
https://github.com/ackbarr/Emby.Plugins/wiki/Supporting-Rocket.Chat

Seems the formatting changed with the 1.2.2 update, and again in 1.2.3. Instead of using Slack I am just doing a normal webhook now with this script set in Rocket (Claude helped), notifications work in Rocket.Chat again.

Just figured I'd post it here in case anyone else comes looking.
 

/* exported Script */
/* globals console, _, s */
/** Global Helpers
 * console - A normal console instance
 * _       - An underscore instance
 * s       - An underscore string instance
 */
class Script {
  /**
   * @params {object} request
   */
  process_incoming_request({ request }) {
    // Extract content
    const content = request.content;
    let messageText = '';
    
    if (content.Event === 'system.webhooktest') {
      messageText = `Test Notification: ${content.Title}`;
      if (content.Description) {
        messageText += `\n${content.Description}`;
      }
    } else {
      messageText = `${content.Title || 'New Event'}`;
      
      if (content.Description) {
        messageText += `\n${content.Description}`;
      }
      
      if (content.User && content.User.Name) {
        messageText += `\nUser: ${content.User.Name}`;
      }
    }

    return {
      content: {
        text: messageText
      }
    };
  }
}


 

@Dazikchanged how?

But by the way, using webhooks I think is a better choice for you anyway.

  • 2 weeks later...
Natilus13
Posted
On 06/03/2025 at 09:55, Natilus13 said:

Finished the update, and the image checkbox is now showing. Despite selecting it, I am still not getting an image though. Here is what a post to Slack looks like for me... There is some tiny little icon, that is showing just above the text, that was not there before I selected the show image checkbox in the notification settings.

image.thumb.png.1e1cfeae7dd54f781ca05a32d660d238.png

I've attached a recent log file for you to review as well.

Thanks again for all the hard work and help @Luke 🙂

embyserver.txt 58.53 kB · 0 downloads

@LukeDid anything in the log stand out? I'm still not having any luck getting images to show. Thanks 🙂 

  • 2 weeks later...
Posted
On 3/21/2025 at 11:30 AM, Natilus13 said:

@LukeDid anything in the log stand out? I'm still not having any luck getting images to show. Thanks 🙂 

There is a defect in the 4.8.11 server release related to the notification image. It will be resolved in 4.8.12 and is already resolved in the beta channel. Thanks.

  • Like 1
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...