Skip to content

Commit

Permalink
Merge pull request #2 from nzbgetcom/feature/manifest
Browse files Browse the repository at this point in the history
- 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
dnzbk authored Jan 11, 2024
2 parents a447820 + e2a8309 commit 0d27334
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ jobs:
release:
uses: nzbgetcom/nzbget-extensions/.github/workflows/extension-release.yml@main
with:
release-file-list: Logger.py
release-file-list: main.py manifest.json
release-file-name: logger
release-dir: logger
5 changes: 4 additions & 1 deletion README.md
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-Logger/releases/tag/v1.0) release.

# Logger
Logger [script](https://nzbget.com/documentation/post-processing-scripts/) for [NZBGet](https://nzbget.com).

This script saves the download and post-processing log of nzb-file into file _nzblog.txt in the destination directory.

Author: Andrey Prygunkov <[email protected]>

> **Note:** This script is compatible with python 3.8.x and above.
> **Note:** This script requires Python to be installed on your system.
18 changes: 1 addition & 17 deletions Logger.py → main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
#
# Logger post-processing script for NZBGet
#
Expand All @@ -15,24 +14,9 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#


##############################################################################
### NZBGET POST-PROCESSING SCRIPT ###

# Save nzb log into a file.
#
# This script saves the download and post-processing log of nzb-file
# into file _nzblog.txt in the destination directory.
#
# NOTE: This script requires Python to be installed on your system.

### NZBGET POST-PROCESSING SCRIPT ###
##############################################################################


import os
import sys
import datetime
Expand Down
22 changes: 22 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"main": "main.py",
"name": "Logger",
"homepage": "",
"kind": "POST-PROCESSING",
"displayName": "Logger",
"version": "1.0.0",
"author": "Andrey Prygunkov",
"license": "GNU",
"about": "Save nzb log into a file.",
"queueEvents": "",
"requirements": [
"This script requires Python to be installed on your system."
],
"description": [
"This script saves the download and post-processing log of nzb-file",
"into file _nzblog.txt in the destination directory."
],
"options": [],
"commands": [],
"taskTime": ""
}

0 comments on commit 0d27334

Please sign in to comment.