-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from nzbgetcom/feature/manifest
- migration from a file header config definition to a manifest.json-based configuration - works with NZBGet v23 and above - no longer works with NZBGet v22 and below
- Loading branch information
Showing
4 changed files
with
138 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
> **Note:** This script is compatible with NZBGet v23 and above. | ||
For older versions of NZBGet please use [v1.0](https://github.com/nzbgetcom/Extension-EMail/releases/tag/v1.0) release. | ||
|
||
EMail [script](https://nzbget.com/documentation/post-processing-scripts/) for [NZBGet](https://nzbget.com). | ||
|
||
This script sends E-Mail notification when the job is done. | ||
|
||
Author: Andrey Prygunkov <hugbug@users.sourceforge.net> | ||
|
||
> **Note:** This script is compatible with python 3.8.x and above. | ||
> **Note:** This script requires Python to be installed on your system. |
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,131 @@ | ||
{ | ||
"main": "main.py", | ||
"name": "EMail", | ||
"homepage": "", | ||
"kind": "POST-PROCESSING", | ||
"displayName": "EMail", | ||
"version": "2.0.0", | ||
"author": "Andrey Prygunkov", | ||
"license": "GNU", | ||
"about": "Send E-Mail notification.", | ||
"queueEvents": "", | ||
"requirements": [ | ||
"This script requires Python to be installed on your system." | ||
], | ||
"description": ["This script sends E-Mail notification when the job is done."], | ||
"options": [ | ||
{ | ||
"name": "SendMail", | ||
"displayName": "SendMail", | ||
"value": "Always", | ||
"description": ["When to send the message."], | ||
"select": ["Always", "OnFailure"] | ||
}, | ||
{ | ||
"name": "From", | ||
"displayName": "From", | ||
"value": "\"NZBGet\" <myaccount@gmail.com>", | ||
"description": ["Email address you want this email to be sent from."], | ||
"select": [] | ||
}, | ||
{ | ||
"name": "To", | ||
"displayName": "To", | ||
"value": "myaccount@gmail.com", | ||
"description": [ | ||
"Email address you want this email to be sent to.", | ||
"", | ||
"Multiple addresses can be separated with comma." | ||
], | ||
"select": [] | ||
}, | ||
{ | ||
"name": "Server", | ||
"displayName": "Server", | ||
"value": "smtp.gmail.com", | ||
"description": ["SMTP server host."], | ||
"select": [] | ||
}, | ||
{ | ||
"name": "Port", | ||
"displayName": "Port", | ||
"value": 25, | ||
"description": ["SMTP server port (1-65535)"], | ||
"select": [1, 65535] | ||
}, | ||
{ | ||
"name": "Encryption", | ||
"displayName": "Encryption", | ||
"value": "yes", | ||
"description": [ | ||
"Secure communication using TLS/SSL.", | ||
"", | ||
"no - plain text communication (insecure);", | ||
"yes - switch to secure session using StartTLS command;", | ||
"force - start secure session on encrypted socket." | ||
], | ||
"select": ["no", "yes", "force"] | ||
}, | ||
{ | ||
"name": "Username", | ||
"displayName": "Username", | ||
"value": "yes", | ||
"description": ["SMTP server user name, if required."], | ||
"select": [] | ||
}, | ||
{ | ||
"name": "Password", | ||
"displayName": "Password", | ||
"value": "mypass", | ||
"description": ["SMTP server password, if required."], | ||
"select": [] | ||
}, | ||
{ | ||
"name": "Statistics", | ||
"displayName": "Statistics", | ||
"value": "yes", | ||
"description": ["Append statistics to the message."], | ||
"select": ["yes", "no"] | ||
}, | ||
{ | ||
"name": "FileList", | ||
"displayName": "FileList", | ||
"value": "yes", | ||
"description": [ | ||
"Append list of files to the message.", | ||
"", | ||
"Add the list of downloaded files (the content of destination directory).." | ||
], | ||
"select": ["yes", "no"] | ||
}, | ||
{ | ||
"name": "BrokenLog", | ||
"displayName": "BrokenLog", | ||
"value": "yes", | ||
"description": [ | ||
"Append broken-log to the message.", | ||
"", | ||
"Add the content of file _brokenlog.txt. This file contains the list of damaged", | ||
"files and the result of par-check/repair. For successful downloads the broken-log", | ||
"is usually deleted by cleanup-script and therefore is not sent." | ||
], | ||
"select": ["yes", "no"] | ||
}, | ||
{ | ||
"name": "NzbLog", | ||
"displayName": "NzbLog", | ||
"value": "OnFailure", | ||
"description": ["Append nzb log to the message.Add the download and post-processing log of active job.."], | ||
"select": ["Always", "Never", "OnFailure"] | ||
} | ||
], | ||
"commands": [ | ||
{ | ||
"name": "ConnectionTest", | ||
"action": "Send Test E-Mail", | ||
"displayName": "ConnectionTest", | ||
"description": ["To check connection parameters click the button."] | ||
} | ||
], | ||
"taskTime": "" | ||
} |