From 3ed90133e5ed9d9544815501abd53abc9d0af56b Mon Sep 17 00:00:00 2001 From: <> Date: Sat, 1 Oct 2022 07:57:23 +0000 Subject: [PATCH] Deployed e4531751 with MkDocs version: 1.4.0 --- Downloaders/NZBGet/scripts/index.html | 69 ++++++++++++++++- .../NZBGet/scripts/replace_for/replace_for.py | 40 ++++++++++ .../images/sabnzbd-categories-replace_for.png | Bin 0 -> 103939 bytes Downloaders/SABnzbd/scripts/index.html | 71 +++++++++++++++++- .../scripts/replace_for/replace_for.py | 42 +++++++++++ search/search_index.json | 2 +- sitemap.xml.gz | Bin 981 -> 981 bytes 7 files changed, 221 insertions(+), 3 deletions(-) create mode 100644 Downloaders/NZBGet/scripts/replace_for/replace_for.py create mode 100644 Downloaders/SABnzbd/images/sabnzbd-categories-replace_for.png create mode 100644 Downloaders/SABnzbd/scripts/replace_for/replace_for.py diff --git a/Downloaders/NZBGet/scripts/index.html b/Downloaders/NZBGet/scripts/index.html index 3a69e308d..1fd8b101c 100644 --- a/Downloaders/NZBGet/scripts/index.html +++ b/Downloaders/NZBGet/scripts/index.html @@ -1981,6 +1981,13 @@ HashRenamer + + +
replace_for.py
Replaces underscores with dots in downloaded filename to prevent download loops with poorly named releases on some indexers (often HONE releases).
+Install Instructions:
+sudo chmod +x replace_for.py
Settings
=> Extension Scripts
replace_for.py
in the Extensions
setting.#!/usr/bin/env python3
+#
+
+##############################################################################
+### NZBGET POST-PROCESSING SCRIPT ###
+
+# Replace underscore with dot.
+#
+# Author: miker
+#
+#
+# Copy script to NZBGet's script folder.
+# Run sudo chmod +x replace_for.py
+#
+#
+# NOTE: This script requires Python to be installed on your system.
+
+### NZBGET POST-PROCESSING SCRIPT ###
+##############################################################################
+
+from __future__ import print_function
+import os, re, sys
+
+# Exit codes used by NZBGet
+POSTPROCESS_SUCCESS=93
+POSTPROCESS_ERROR=94
+POSTPROCESS_SKIP=95
+
+
+directory = os.environ['NZBPP_DIRECTORY']
+print('Directory used is: ',directory)
+
+for path, currentDirectory, files in os.walk(directory):
+ for file in files:
+ if file.find("_") !=-1:
+ dst = file.replace('_', '.')
+ os.rename (os.path.join(path,file),os.path.join(path,dst) )
+ print('Result: ',file," renamed to ",dst)
+
+sys.exit(POSTPROCESS_SUCCESS)
+
)OEZ`g+tg$$iYXw}Xi?iYf;z}i=%D-7aU#+su5l{q2dX~{g2Q%F`xy2!*12#&|6
z4d{WKUj$AV%eM(eJHF+XK?1M0(F+g_d94JY*0!W6)_GS6OEiU*#QbT%x~(f>Mv|dt
znxi jBoaJC92ZY&v+0}t)(p%oAqg6C34cHgD1lQemSM1N
zpMv97+SWnU9}&5|5Ec?2&4N=qC=^bIENlZGt%p#~OO`nI7G41Dyp=>w-<>ij4U7Ye
zg^j+s_EZDo8jEw9th_z
zMUuCV%VA13at;~UrXhB?o}|*6CXRaOCAUj{gbb(d3{4FzR;sm2<3YYyeA%P?CWqbd
zGW6C=)mJF@T7rxw<4Jq$KbDjBAQ$5DctfM`sX&$MDwE%Ip00{QjnbJHJ4PUa_vzyi
zSx>2}Ri%r3-IXnSyidR{PRjd2;FeCrScRA#FW+~r%F-3|>As@{h+Wf^VAP5lwNN#>
zsDr0MS{|;<;$cX1Ja44^UaE_;5+pK~0JI1&2rdVae5Vvt@8475&l_!6#?*0h{?I3C
zr3KQ@lwghwkn+)OAYc|!&az7c--*Lyb7gGZ&zSvQys9NcD40_fFsH7uK%;}8Z;)ho
zx)dNwJ4FNKWZ7kDFld?Eo
z!v_^EK6VmOiE6@b`g4_|Hk8FQL`@VMUG1t!A;0O~5RPuz*+oORD!;iCaLM^*Y_8)8
z4<+_qR+n)$t$6qdFR^%yf@DaPCeFD!`|CYN_mVPxB+?~*>yUstG-By`x^Rm;8NXzV
ziI~}MDTeBm24Q^4*4P3@wvNgY|u}E
z7=I`V9#fah0N56xVt6MJ*aqfv*4suB@f6{u5nvUf1SCMm>a7yTng=a>56Nz5QckI`
z7U{GhS9rkMcO|6lKA(0ZWZy>aO
zBWwTrTxkVnb5+d7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