Sabnzbd Version 4.0.0 (current beta) introduced a couple of input variables, that weren't available in the versions before.
This PR fixes the two scripts in the Guide, so they are compatible with earlier and V4+ versions
https://sabnzbd.org/wiki/scripts/pre-queue-scripts#toc3
Sabnzbd Version 4.0.0 (current beta) introduced a couple of input variables, that weren't available in the versions before.
This PR fixes the two scripts in the Guide, so they are compatible with earlier and V4+ versions
https://sabnzbd.org/wiki/scripts/pre-queue-scripts#toc3
This is a fix related to how NinjaCentral names their NZB files.
All their NZBs have a dash + four characters appended to the filename/name of the NZB.
A few examples:
-ASn1
-xm98
-ga2k
This reg-ex/reg-ex-replace works by removing that part only. I've had this reg-ex in my clean.py script for quite a long time, and haven't observed any negative effects with using this, with a lot of different NZB indexers simultaneously.
A reg-ex test:
https://regex101.com/r/fpsQqh/1