From 59a336c563e8436263c92b626782f5e2b692a8f0 Mon Sep 17 00:00:00 2001 From: Fabricio Silva Date: Sun, 9 Apr 2023 08:40:38 +0100 Subject: [PATCH 1/2] Revert "SABnzbd - Update replace_for.py to work with V.4.0.0" This reverts commit 77a279c77a9e4b5f27a188b0a099e436f64292fa. --- Post-processing scripts have differents args from Pre-queue scripts. --- .../Downloaders/SABnzbd/scripts/replace_for/replace_for.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/Downloaders/SABnzbd/scripts/replace_for/replace_for.py b/docs/Downloaders/SABnzbd/scripts/replace_for/replace_for.py index 0345f3650..d347394cf 100644 --- a/docs/Downloaders/SABnzbd/scripts/replace_for/replace_for.py +++ b/docs/Downloaders/SABnzbd/scripts/replace_for/replace_for.py @@ -20,12 +20,7 @@ import os import os.path try: - try: - # Parse the 18 input variables for SABnzbd version >= 4.0.0 - (scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename, is_proper, resolution, decade, year, month, day, job_type) = sys.argv -except ValueError: - # ...or 11 variables for earlier versions - (scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv + (scriptname, directory, orgnzbname, jobname, reportnumber, category, group, postprocstatus, url) = sys.argv except: print("No commandline parameters found") sys.exit(1) # exit with 1 causes SABnzbd to ignore the output of this script From 9944cec66fcf72a8c262738eedc6a2cf921bc97a Mon Sep 17 00:00:00 2001 From: TRaSH Date: Sun, 9 Apr 2023 10:37:32 +0200 Subject: [PATCH 2/2] [SQP] remove preferred quality size from table - [SQP] Removed preferred quality size from table --- includes/sqp/1-quality-size.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/sqp/1-quality-size.md b/includes/sqp/1-quality-size.md index db2452197..0df2c8ac6 100644 --- a/includes/sqp/1-quality-size.md +++ b/includes/sqp/1-quality-size.md @@ -2,14 +2,14 @@ `Settings` => `Quality` -| Quality | Min | Preferred | Max | -| ------------------------------------------------------------------------ | -------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------- | -| {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['preferred'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['max'] }} | -| {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['preferred'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['max'] }} | -| {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['preferred'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['max'] }} | -| {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['preferred'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['max'] }} | -| {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['preferred'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['max'] }} | -| {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['preferred'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['max'] }} | +| Quality | Min | Max | +| ------------------------------------------------------------------------ | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][0]['max'] }} | +| {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][1]['max'] }} | +| {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][2]['max'] }} | +| {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][3]['max'] }} | +| {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][4]['max'] }} | +| {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['quality'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['min'] }} | {{ radarr['quality-size']['sqp-streaming']['qualities'][5]['max'] }} | The reason why you don't see the `Preferred` score in the table above is because we want max quality anyway. So set it as high as possible.