caronc / nzb-notify

Push Notifications to a large number of supported services for NZBGet and SABnzbd (based on Apprise)
GNU General Public License v3.0
129 stars 15 forks source link

New Sabnzbd alert icon? #39

Closed seanvree closed 6 years ago

seanvree commented 6 years ago

OS: Windows 10 Sabnzbd Agent: Mattermost

Sab Notification script: mmosts://sabnzbd@mydomain.com/ifeaht4hpxxxxxxxijxdpwfia8ih?verify=False

Issue:

Out of no where the icon that started to display for Sabnzbd is different. And it's being loaded from an insecure source See screenshot below:

image

image

caronc commented 6 years ago

Hi,

Yeah; don't panic. I'll try to revert it back to the old icons for SABnzbd this weekend.

I did some major refactoring to the notification application (almost 4000 lines of code removed). I put all of the notification core functionality into it's own library called Apprise that anyone can use (for their own application). So then I updated this script to reference this new (apprise) library instead.

I didn't think about the SABnzbd icons (that's all that changed). Nothing should have broke on you otherwise though?

seanvree commented 6 years ago

@caronc Yeah, I figured you were messing with something. no biggie.

Nope, everything works fine!

seanvree commented 6 years ago

@caronc I'm getting these errors now:

 Notification script returned exit code 1 and output "Traceback (most recent call last):
  File "C:\Program Files\SABnzbd\scripts\Notify.py", line 350, in <module>
    from nzbget import SCRIPT_MODE
  File "C:\Program Files\SABnzbd\scripts\Notify\nzbget\__init__.py", line 23, in <module>
    from .ScriptBase import *
  File "C:\Program Files\SABnzbd\scripts\Notify\nzbget\ScriptBase.py", line 2504
    except TypeError
                   ^
caronc commented 6 years ago

Have another go at it. (fixed it here)

seanvree commented 6 years ago

@caronc yeah, that worked. Still have the old icon tho.

image

caronc commented 6 years ago

I apologize for leaving this ticket for so long. Just to let you know i haven't forgotten about it/you yet. Hopefully I'll have time to fix the icons this week.

seanvree commented 6 years ago

@caronc all good brother. First world problems.

caronc commented 6 years ago

The icon looks similar to what it already is, but since it's a standalone notification service, i just gave it an nzb-notify custom icon. They'll look as follows (a variety of sizes depending on the notification service used): Success Messages apprise-success-256x256 Failure Messages apprise-failure-256x256 Info Messages apprise-info-256x256 Warning Messages apprise-warning-256x256

Sound okay?

seanvree commented 6 years ago

@caronc love it man! Great idea!

TBH, I'm mostly concerned that the images are served from a secure source. Can they not be served from the local repo?

caronc commented 6 years ago

Some notification services that support images can only display them via URL. Others are file based and can read the local ones shipped. If you're concerned about privacy, you can turn off the image display. Alternatively, to address your concern about an insecure source, perhaps I could get the images to look back at the GitHub Repository instead of nuxref.com one?

seanvree commented 6 years ago

Yeah there's no point in serving the images from a remote source. Just put them in the repo.

caronc commented 6 years ago

If you wouldn't mind, giver another go. If it works i'll update apprise (the core module) to also source images from GitHub too instead of my nuxref.com host (it's one less thing for me to manage).

Thanks for all your feedback

seanvree commented 6 years ago

Looks good @caronc Thanks brotha!