From d3bd30c0a96505cfffa00535a4fd8f5c0f6e6b08 Mon Sep 17 00:00:00 2001 From: TRaSH Date: Tue, 10 Aug 2021 16:21:27 +0200 Subject: [PATCH] Created: [NEW] SABnzbd - Scripts --- docs/Downloaders/SABnzbd/.pages | 3 +- .../images/sabnzbd-switches-queue-clean.png | Bin 0 -> 17701 bytes .../SABnzbd/scripts/Clean/Clean.py | 61 ++++++++++++++++++ docs/Downloaders/SABnzbd/scripts/index.md | 28 ++++++++ 4 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 docs/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png create mode 100644 docs/Downloaders/SABnzbd/scripts/Clean/Clean.py create mode 100644 docs/Downloaders/SABnzbd/scripts/index.md diff --git a/docs/Downloaders/SABnzbd/.pages b/docs/Downloaders/SABnzbd/.pages index a51ef9332..ba5470999 100644 --- a/docs/Downloaders/SABnzbd/.pages +++ b/docs/Downloaders/SABnzbd/.pages @@ -1,3 +1,4 @@ nav: - Basic-Setup: Basic-Setup.md - - Path and Categories: Paths-and-Categories.md \ No newline at end of file + - Path and Categories: Paths-and-Categories.md + - Scripts: /Downloaders/SABnzbd/scripts/ \ No newline at end of file diff --git a/docs/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png b/docs/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png new file mode 100644 index 0000000000000000000000000000000000000000..3891c24c23c608ca0d9cdb732e8da566259dc2d0 GIT binary patch literal 17701 zcmchJER+7=={y# z_g>@P@9%y8c-OnuSAQTKH> zfT*kH_#rk1#(fO&=RyijS2kj`bI6+Ar-R0yn@pzVjbDSA9^KaAvRuO)cP~ECxw0v5 zhPZaUZa3A#SOwrrsPQa;X?Yyu`b~9w;_EmAuT5Q79`1Vq)WaAa6SRowgKpVd5F}xE zg^APZTim>-|LrOv-aA@D$2z3dMa(49s5_3I;%fN8`sR9vRUL9PGIlF=l8xOW0A31Kcd`$+0XM~0UeNJ9{^X|+S}^1=VSKPjhU z0$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}f09#Doleo3Hh3$Dix%z&z)`PG0URCqXN zbw2!2b`?SV`}vk%yPtX6O8|}jel|41`4usMB%4J@v5J03DRn36r()9v{q zFA2K!`+R>xrQdOk>F@F&mFtxvfOY)OOh0a*e_)~~WF$7sEq`SHq)@>3S4fcw`!L`m zMDaU5(RuRweEz9WN*ti-?}!MV$?_A!{AaQWfk44^tS4NJzZPcx%tbxbMgiYT4Ek$! z>z{iN>i;of;Mdc+{+0N Switches ## +## 4. Change Pre-queue user script and select: Clean.py ## +################################################################## + +import sys +import re + +try: + (scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv + downloadsize = int(downloadsize) +except: + sys.exit(1) # exit with 1 causes SABnzbd to ignore the output of this script + +fwp = nzbname +fwp = re.sub('(?i)-4P$', '', fwp) +fwp = re.sub('(?i)-4Planet$', '', fwp) +fwp = re.sub('(?i)-AsRequested$', '', fwp) +fwp = re.sub('(?i)-AsRequested-xpost$', '', fwp) +fwp = re.sub('(?i)-BUYMORE$', '', fwp) +fwp = re.sub('(?i)-Chamele0n$', '', fwp) +fwp = re.sub('(?i)-GEROV$', '', fwp) +fwp = re.sub('(?i)-iNC0GNiTO$', '', fwp) +fwp = re.sub('(?i)-NZBGeek$', '', fwp) +fwp = re.sub('(?i)-Obfuscated$', '', fwp) +fwp = re.sub('(?i)-postbot$', '', fwp) +fwp = re.sub('(?i)-Rakuv$', '', fwp) +fwp = re.sub('(?i)-Scrambled$', '', fwp) +fwp = re.sub('(?i)-WhiteRev$', '', fwp) +fwp = re.sub('(?i)-WRTEAM$', '', fwp) +fwp = re.sub('(?i)-CAPTCHA$', '', fwp) +fwp = re.sub('(?i)\[eztv\]$', '', fwp) +fwp = re.sub('(?i)\[TGx\]$', '', fwp) +fwp = re.sub('(?i)\[ettv\]$', '', fwp) +fwp = re.sub('(?i)\[TGx\]-xpost$', '', fwp) +fwp = re.sub('(?i).mkv-xpost$', '', fwp) +fwp = re.sub('(?i)-xpost$', '', fwp) + +print("1") # Accept +print(fwp) +print() +print() +print() +print() +print() +# 0 means OK +sys.exit(0) \ No newline at end of file diff --git a/docs/Downloaders/SABnzbd/scripts/index.md b/docs/Downloaders/SABnzbd/scripts/index.md new file mode 100644 index 000000000..6aa738b7d --- /dev/null +++ b/docs/Downloaders/SABnzbd/scripts/index.md @@ -0,0 +1,28 @@ +# SABnzbd Scripts + +## Clean + +??? info "Clean NZB name" + + - Title: `Clean.py` + - Author(s): ??? + - Made compatible for SABnzbd: AlexK + + Removes the following suffixes from NZB name: + NZBgeek / Obfuscated / BUYMORE / Scrambled /etc... + Cleans the NZB name by removing the retagged stuff (-Obfuscated, -postbox, etc). + + Install Instructions: + + 1. Copy script to sabnzbd's script folder + 1. run: `sudo chmod +x Clean.py` + 1. in SABnzbd go to `Settings` => `Switches` + 1. Change Pre-queue user script and select: `Clean.py` + + ![!Enable Clean.py](/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png) + +??? example "Script" + + ```python + [[% filter indent(width=4) %]][[% include 'Downloaders/SABnzbd/scripts/Clean/Clean.py' %]][[% endfilter %]] + ```