You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/docs/Downloaders/SABnzbd/scripts/index.md

66 lines
2.4 KiB

# SABnzbd Scripts
A collection of community-provided and maintained scripts for SABnzbd.
If you have a script you want to share, don't hesitate to create a [PR](https://github.com/TRaSH-Guides/Guides/blob/master/CONTRIBUTING.md) for it.
!!! warning "Because these scripts are community-provided and maintained we can't assure that they are still 100% working"
## Prerequisites
- You've created folder called `scripts` in the root directory of SABnzbd
- You've set the `scripts` folder inside the SABnzbd settings under `Folder > User Folders > Scripts Folder`. ([More Infos](https://sabnzbd.org/wiki/configuration/4.3/folders))
- Your script got sufficient rights to execute. ([More Infos](https://sabnzbd.org/wiki/configuration/4.3/scripts/post-processing-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 `scripts` folder
2. Use your prefered shell and navigate to the `scripts` folder with the command `cd` (example `cd /mnt/user/appdata/sabnzdb/scripts`).
3. run: `sudo chmod +x Clean.py`
4. in SABnzbd go to `Settings` => `Switches`
5. 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 %]]
```
## replace_for
??? info "Replaces underscores with dots"
- Title: `replace_for.py`
- Author: miker
Replaces underscores with dots in downloaded filename to prevent download loops with poorly named releases on some indexers (often HONE releases).
Install Instructions:
1. Copy script to SABnzbd's script folder
1. run: `sudo chmod +x replace_for.py`
1. in SABnzbd go to `Settings` => `Categories`
1. Change script for required categories and select: `replace_for.py`
![!Enable replace_for.py](/Downloaders/SABnzbd/images/sabnzbd-categories-replace_for.png)
??? example "Script"
```python
[[% filter indent(width=4) %]][[% include 'Downloaders/SABnzbd/scripts/replace_for/replace_for.py' %]][[% endfilter %]]
```