Coder Social home page Coder Social logo

addnzbs.py's Introduction

AddNZBs

Add downloaded NZB files to NZBGet - An Extension Script for NZBGet v24.0 or higher from NZBGet.com

If the current download being processed by the script contains NZB files they will be pushed to the NZBGet queue.

If the NZB file names do include an unpack password in the format nzbname{{password}}.nzb the password will be passed over to NZBGet when pushing the NZB file to NZBGet.

If a category was assigned to the currently processed download, this category will be passed over to NZBGet as well.

After the NZB files have been pushed to NZBGet they can optionally be deleted from the download folder and if this results in empty folders they can optionally be deleted as well.

NOTE: This script requires NZBGet v24.0 or higher and Python 3.x to be installed on the system running NZBGet.

See the NZBGet documentation for information on how to install extension scripts for NZBGet.

Manual installation instructions (until the script is added to the official NZBGet Extension Manager)

  1. create an empty folder named AddNZBs inside the NZBGet Scripts folder (ScriptDir)
  2. clone this repository into this folder or manually place the AddNZBs.py and the manifest.json file into this folder
  3. open the NZBGet settings page and click on the EXTENSION MANAGER menu item
  4. activate the extension Add NZBs by clicking on the green "Play" button (if you see an orange "Pause" button, the extension is already activated)
  5. go to the options page of the extensions by clicking on the black "Settings" button or on the menu item ADD NZBS below the menu item EXTENSION MANAGER
  6. set the options of the extensions according to your wishes
  7. do not forget to save the settings and to reload NZBGet!

addnzbs.py's People

Contributors

tensai75 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

addnzbs.py's Issues

Adding an extension to the NZBGet Extension manager

I tested your extension and did a code review and I really like it and I would like to integrate it into NZBGet Extension Manager, but to ensure the quality of the extension we would like to add additional pipelines for tests, releases and static code analyzers. We already have pipelines for tests and releases, but we would like to tweak them a bit and write documentation.
You will have to do practically nothing from your side. When the pipelines are ready, you just copy them to your repository and they will automatically start working.

And it would be nice if you had some unit tests ready but I think it's not mandatory and it's up to you.
There is a simple example of unit tests written for ExtendedUnrar extension you could use.

Thank you for your contribution!

UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 1125001: ordinal not in range(128)

Hi there,

Thank you for creating this script, it is exactly what I need. I have run into an issue after install regarding encoding. Here are the details:

Fri Apr 17 2020 10:03:38 | Post-process-script GetScripts/nzbbacktoQ.py for mynzbfile failed (terminated with unknown status)

INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 1125001: ordinal not in range(128)
INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: nzbid = server.append(filename, base64.b64encode(nzb.encode('utf8')).decode('ascii'), category, 0, True, False, '', 0, 'ALL', [('*unpack:password', nzbpassword)])
INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: File "/volume1/@appstore/nzbget/share/nzbget/scripts/GetScripts/nzbbacktoQ.py", line 62, in addLocalFileToNZBGet
INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: nzbid = addLocalFileToNZBGet(nzbname + '.nzb', nzbpath, nzbcategory, nzbpassword)
INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: File "/volume1/@appstore/nzbget/share/nzbget/scripts/GetScripts/nzbbacktoQ.py", line 101, in
INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: Traceback (most recent call last):
INFO | Fri Apr 17 2020 10:03:38 | nzbbacktoQ: Found NZB file "mynzbfile"
INFO | Fri Apr 17 2020 10:03:38 | Executing post-process-script GetScripts/nzbbacktoQ.py for mynzbfile

let me know if you need more details, I can also share the nzb with you. Best regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.