-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: basic notification support with shoutrrr * feat(notifications): change notifications to use discord * chore(notifications): remove leftover services * chore(notifications): apply suggested changes
- Loading branch information
Showing
11 changed files
with
439 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) 2023 - 2024, nuxen and the seasonpackarr contributors. | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
package domain | ||
|
||
const ( | ||
StatusNoMatches = 200 | ||
StatusResolutionMismatch = 201 | ||
StatusSourceMismatch = 202 | ||
StatusRlsGrpMismatch = 203 | ||
StatusCutMismatch = 204 | ||
StatusEditionMismatch = 205 | ||
StatusRepackStatusMismatch = 206 | ||
StatusHdrMismatch = 207 | ||
StatusStreamingServiceMismatch = 208 | ||
StatusAlreadyInClient = 210 | ||
StatusNotASeasonPack = 211 | ||
StatusBelowThreshold = 230 | ||
StatusSuccessfulMatch = 250 | ||
StatusSuccessfulHardlink = 250 | ||
StatusFailedHardlink = 440 | ||
StatusClientNotFound = 472 | ||
StatusGetClientError = 471 | ||
StatusDecodingError = 470 | ||
StatusAnnounceNameError = 469 | ||
StatusGetTorrentsError = 468 | ||
StatusTorrentBytesError = 467 | ||
StatusDecodeTorrentBytesError = 466 | ||
StatusParseTorrentInfoError = 465 | ||
StatusGetEpisodesError = 464 | ||
StatusEpisodeCountError = 450 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) 2021 - 2024, Ludvig Lundgren and the autobrr contributors. | ||
// Code is heavily modified for use with seasonpackarr | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
package domain | ||
|
||
type Sender interface { | ||
Send(statusCode int, payload NotificationPayload) error | ||
} | ||
|
||
type NotificationPayload struct { | ||
Subject string | ||
Message string | ||
ReleaseName string | ||
Client string | ||
Action string | ||
Error error | ||
} |
Oops, something went wrong.