Closed seanvree closed 7 years ago
@seanvree,
I certainly follow what you're asking. I just use the map your referencing (in the code) for image lookups. Potentially we could be passing you a different icon a per category type. At this time i'm not doing that though (just using 1 icon).
With NZBGet, there is a descriptive message title for every failure or success message that gets passed to my script. So many different types of errors can be handed off with respect to that. I didn't realize SABnzbd did not pass in more details other than just the filename in certain cases... Or maybe it is and i have a bug for not referencing more information that is available to me ? :blush:
I'm just wondering if it would make more sense to file this bug against SABnzbd instead? Since you can have multiple types of warnings/alarms in different circumstances, but yet still group them under the same message type. If i change it here, it also implies that everyone who writes their own notification script, they need to maintain their own set of failure messages too. I'll just ping @Safihre to get his thoughts on the matter. I don't mind changing this script either way though.
It seems the title
is missing, SABnzbd definitely sends it.
It sends type title msg
Which for finishing would be:
"complete" "Download completed" "The.Filename"
Same for adding:
"download" "NZB added to the queue" "The.Filename"
Example of a Windows-notification:
@Safihre I knew it was going to come back to being my problem! :blush:. Thank you for taking the time to point that out! I'll focus this ticket on that.
thanks @Safihre - @caronc - Just like before buddy, let me know and I'm willing to test!
just glad it's up and running! So dope! Sorry to nit-pick ya here!
@seanvree you know the routine by now :). You'll need to check out the master branch and giver another go. As always; let me know and I'll do what i can!
@caronc -
YES! However, not sure why the test is so BIG?! Not sure if that's on my side, but i've never seen any test that big in the MM channel.
Hah, i used heading style one to put the title in.. Lets try a smaller heading number... standby...
@caronc
almost there. Tad bit smaller
OS: Windows10E 1703 X64 Sabnzbd: 2.1.0 MatterMost Server: 3.10.0 Notify Script ver: Latest
So I'm getting notifications whenever SAB pauses, shuts down, or other application specific notifications, but when a release is added or finished all that is included in the MatterMost channel is simply the name of the release, no "added", or "finished".
SABNzbd Params: "mmosts://sabnzbd@mymmserver.com/ifeaht4hpt89mrijxdpwxxxxx?verify=False"
See the screenshot below:
SabNzbd-Notify.py: