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/Downloaders/SABnzbd/scripts/index.html

1135 lines
60 KiB

<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width,initial-scale=1" name="viewport"/>
<meta content="Guides mainly for Sonarr/Radarr/Bazarr and everything related to it." name="description"/>
<meta content="TRaSH" name="author"/>
<link href="https://trash-guides.info/Downloaders/SABnzbd/scripts/" rel="canonical"/>
<link href="../Paths-and-Categories/" rel="prev"/>
<link href="../../qBittorrent/" rel="next"/>
<link href="../../../img/favicon.png" rel="icon"/>
<meta content="mkdocs-1.4.2, mkdocs-material-9.0.5" name="generator"/>
<title>SABnzbd Scripts - TRaSH Guides</title>
<link href="../../../assets/stylesheets/main.558e4712.min.css" rel="stylesheet"/>
<link href="../../../assets/stylesheets/palette.2505c338.min.css" rel="stylesheet"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans:300,300i,400,400i,700,700i%7CEncode+Sans+Expanded:400,400i,700,700i&amp;display=fallback" rel="stylesheet"/>
<style>:root{--md-text-font:"Noto Sans";--md-code-font:"Encode Sans Expanded"}</style>
<link href="../../../stylesheets/extra.css" rel="stylesheet"/>
<link href="../../../stylesheets/github-permalink-style.css" rel="stylesheet"/>
<script>__md_scope=new URL("../../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
<script id="__analytics">function __md_analytics(){function n(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],n("js",new Date),n("config","G-ZZKM4MPQXL"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){this.value&&n("event","search",{search_term:this.value})}),document$.subscribe(function(){var a=document.forms.feedback;if(void 0!==a)for(var e of a.querySelectorAll("[type=submit]"))e.addEventListener("click",function(e){e.preventDefault();var t=document.location.pathname,e=this.getAttribute("data-md-value");n("event","feedback",{page:t,data:e}),a.firstElementChild.disabled=!0;e=a.querySelector(".md-feedback__note [data-md-value='"+e+"']");e&&(e.hidden=!1)}),a.hidden=!1}),location$.subscribe(function(e){n("config","G-ZZKM4MPQXL",{page_path:e.pathname})})});var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=G-ZZKM4MPQXL",document.getElementById("__analytics").insertAdjacentElement("afterEnd",e)}</script>
<script>"undefined"!=typeof __md_analytics&&__md_analytics()</script>
<link href="../../../assets/stylesheets/glightbox.min.css" rel="stylesheet"/><style>
html.glightbox-open { overflow: initial; height: 100%; }
.gslide-title { margin-top: 0px; user-select: text; }
.gslide-desc { color: #666; user-select: text; }
.gslide-image img { background: white; }
.gscrollbar-fixer { padding-right: 15px; }
.gdesc-inner { font-size: 0.75rem; }
body[data-md-color-scheme="slate"] .gdesc-inner { background: var(--md-default-bg-color);}
body[data-md-color-scheme="slate"] .gslide-title { color: var(--md-default-fg-color);}
body[data-md-color-scheme="slate"] .gslide-desc { color: var(--md-default-fg-color);}
</style><script src="../../../assets/javascripts/glightbox.min.js"></script></head>
<body data-md-color-accent="blue" data-md-color-primary="indigo" data-md-color-scheme="slate" dir="ltr">
<script>var palette=__md_get("__palette");if(palette&&"object"==typeof palette.color)for(var key of Object.keys(palette.color))document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
<input autocomplete="off" class="md-toggle" data-md-toggle="drawer" id="__drawer" type="checkbox"/>
<input autocomplete="off" class="md-toggle" data-md-toggle="search" id="__search" type="checkbox"/>
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a class="md-skip" href="#sabnzbd-scripts">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header" data-md-component="header">
<nav aria-label="Header" class="md-header__inner md-grid">
<a aria-label="TRaSH Guides" class="md-header__button md-logo" data-md-component="logo" href="../../.." title="TRaSH Guides">
<img alt="logo" src="../../../img/logo.png"/>
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"></path></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
TRaSH Guides
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
SABnzbd Scripts
</span>
</div>
</div>
</div>
<form class="md-header__option" data-md-component="palette">
<input aria-label="Switch to light mode" class="md-option" data-md-color-accent="blue" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-primary="indigo" data-md-color-scheme="slate" id="__palette_1" name="__palette" type="radio"/>
<label class="md-header__button md-icon" for="__palette_2" hidden="" title="Switch to light mode">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h10a5 5 0 0 0 5-5 5 5 0 0 0-5-5m0 8a3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3 3 3 0 0 1-3 3Z"></path></svg>
</label>
<input aria-label="Switch to dark mode" class="md-option" data-md-color-accent="blue" data-md-color-media="(prefers-color-scheme: light)" data-md-color-primary="indigo" data-md-color-scheme="default" id="__palette_2" name="__palette" type="radio"/>
<label class="md-header__button md-icon" for="__palette_1" hidden="" title="Switch to dark mode">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></svg>
</label>
</form>
<label class="md-header__button md-icon" for="__search">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"></path></svg>
</label>
<div class="md-search" data-md-component="search" role="dialog">
<label class="md-search__overlay" for="__search"></label>
<div class="md-search__inner" role="search">
<form class="md-search__form" name="search">
<input aria-label="Search" autocapitalize="off" autocomplete="off" autocorrect="off" class="md-search__input" data-md-component="search-query" name="query" placeholder="Search" required="" spellcheck="false" type="text"/>
<label class="md-search__icon md-icon" for="__search">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"></path></svg>
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"></path></svg>
</label>
<nav aria-label="Search" class="md-search__options">
<button aria-label="Clear" class="md-search__icon md-icon" tabindex="-1" title="Clear" type="reset">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"></path></svg>
</button>
</nav>
</form>
<div class="md-search__output">
<div class="md-search__scrollwrap" data-md-scrollfix="">
<div class="md-search-result" data-md-component="search-result">
<div class="md-search-result__meta">
Initializing search
</div>
<ol class="md-search-result__list" role="presentation"></ol>
</div>
</div>
</div>
</div>
</div>
<div class="md-header__source">
<a class="md-source" data-md-component="source" href="https://github.com/TRaSH-/Guides" title="Go to repository">
<div class="md-source__icon md-icon">
<svg viewbox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"></path></svg>
</div>
<div class="md-source__repository">
TRaSH-/Guides
</div>
</a>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<nav aria-label="Tabs" class="md-tabs" data-md-component="tabs">
<div class="md-tabs__inner md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../..">
Home
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Radarr/">
Radarr
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Sonarr/">
Sonarr
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Prowlarr/">
Prowlarr
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Bazarr/">
Bazarr
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link md-tabs__link--active" href="../../">
Downloaders
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Plex/">
Plex
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Misc/">
Misc
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Hardlinks/Hardlinks-and-Instant-Moves/">
Hardlinks
</a>
</li>
<li class="md-tabs__item">
<a class="md-tabs__link" href="../../../Hardlinks/How-to-setup-for">
How-to-setup-for
</a>
</li>
</ul>
</div>
</nav>
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav aria-label="Navigation" class="md-nav md-nav--primary md-nav--lifted" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a aria-label="TRaSH Guides" class="md-nav__button md-logo" data-md-component="logo" href="../../.." title="TRaSH Guides">
<img alt="logo" src="../../../img/logo.png"/>
</a>
TRaSH Guides
</label>
<div class="md-nav__source">
<a class="md-source" data-md-component="source" href="https://github.com/TRaSH-/Guides" title="Go to repository">
<div class="md-source__icon md-icon">
<svg viewbox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"></path></svg>
</div>
<div class="md-source__repository">
TRaSH-/Guides
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../..">
Home
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2" id="__nav_2" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_2" tabindex="0">
Radarr
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Radarr" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_2">
<span class="md-nav__icon md-icon"></span>
Radarr
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/">
Home
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Radarr-Quality-Settings-File-Size/">
Quality Settings (File Size)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Radarr-recommended-naming-scheme/">
Recommended naming scheme
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Radarr-import-custom-formats/">
How to import Custom Formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Radarr-how-to-update-custom-formats/">
How to Update Custom Formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/radarr-setup-quality-profiles/">
How to setup Quality Profiles
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/radarr-setup-quality-profiles-anime/">
How to setup Quality Profiles (Anime)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/radarr-setup-quality-profiles-french-en/">
How to setup Quality Profiles (French)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Radarr-collection-of-custom-formats/">
Collection of Custom Formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Radarr-remote-path-mapping/">
Remote Path Mappings explained
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2_11" id="__nav_2_11" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_2_11" tabindex="0">
Tips
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Tips" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_2_11">
<span class="md-nav__icon md-icon"></span>
Tips
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Tips/How-to-setup-language-custom-formats/">
How to setup Language Custom Formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Tips/Merge-quality/">
How to Merge Quality
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Tips/Radarr-rename-your-folders/">
How to rename your folders
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Tips/Radarr-show-unknown-movie-items/">
Show Unknown Movie Items
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Radarr/Tips/Sync-2-radarr-sonarr/">
How to Sync 2 Radarr or Sonarr with each other
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" id="__nav_3" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_3" tabindex="0">
Sonarr
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Sonarr" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_3">
<span class="md-nav__icon md-icon"></span>
Sonarr
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/">
Home
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Sonarr-Quality-Settings-File-Size/">
Quality Settings (File Size)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Sonarr-recommended-naming-scheme/">
Recommended naming scheme
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Sonarr-Release-Profile-RegEx/">
Release Profile RegEx (WEB-DL)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Sonarr-Release-Profile-RegEx-Anime/">
Release Profile RegEx (Anime)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Sonarr-remote-path-mapping/">
Remote Path Mappings explained
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3_7" id="__nav_3_7" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_3_7" tabindex="0">
Sonarr v4 Beta
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Sonarr v4 Beta" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_3_7">
<span class="md-nav__icon md-icon"></span>
Sonarr v4 Beta
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/sonarr-import-custom-formats/">
How to import Custom Formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/sonarr-how-to-update-custom-formats/">
How to Update Custom Formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/sonarr-setup-quality-profiles/">
How to setup Quality Profiles
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/sonarr-setup-quality-profiles-anime/">
How to setup Quality Profiles (Anime)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/sonarr-setup-quality-profiles-french-en/">
How to setup Quality Profiles (French)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/sonarr-collection-of-custom-formats/">
Collection of Custom Formats
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3_8" id="__nav_3_8" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_3_8" tabindex="0">
Tips
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Tips" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_3_8">
<span class="md-nav__icon md-icon"></span>
Tips
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Tips/How-to-setup-language-custom-formats/">
How to setup language custom formats
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Tips/Merge-quality/">
Merge quality
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Sonarr/Tips/Sync-2-radarr-sonarr/">
Sync 2 radarr sonarr
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" id="__nav_4" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_4" tabindex="0">
Prowlarr
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Prowlarr" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_4">
<span class="md-nav__icon md-icon"></span>
Prowlarr
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Prowlarr/">
Home
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Prowlarr/prowlarr-setup-proxy/">
How to setup proxy for certain indexers
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Prowlarr/prowlarr-setup-flaresolverr/">
How to setup FlareSolverr
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" id="__nav_5" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_5" tabindex="0">
Bazarr
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Bazarr" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_5">
<span class="md-nav__icon md-icon"></span>
Bazarr
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Bazarr/">
Home
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Bazarr/Setup-Guide/">
Basic-Guide
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Bazarr/After-install-configuration/">
After Install Configuration
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="/Bazarr/scripts/">
Scripts
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5_5" id="__nav_5_5" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_5_5" tabindex="0">
Tips
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Tips" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_5_5">
<span class="md-nav__icon md-icon"></span>
Tips
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Bazarr/Tips/Bazarr-suggested-scoring/">
Suggested Scoring
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input checked="" class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" id="__nav_6" type="checkbox"/>
<label aria-expanded="true" class="md-nav__link" for="__nav_6" tabindex="0">
Downloaders
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Downloaders" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_6">
<span class="md-nav__icon md-icon"></span>
Downloaders
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../">
Home
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_2" id="__nav_6_2" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_6_2" tabindex="0">
NZBGet
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="NZBGet" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_6_2">
<span class="md-nav__icon md-icon"></span>
NZBGet
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../NZBGet/Basic-Setup/">
Basic-Setup
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../NZBGet/Paths-and-Categories/">
Path and Categories
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="/Downloaders/NZBGet/scripts/">
Scripts
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input checked="" class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_3" id="__nav_6_3" type="checkbox"/>
<label aria-expanded="true" class="md-nav__link" for="__nav_6_3" tabindex="0">
SABnzbd
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="SABnzbd" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_6_3">
<span class="md-nav__icon md-icon"></span>
SABnzbd
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../Basic-Setup/">
Basic-Setup
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../Paths-and-Categories/">
Path and Categories
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="/Downloaders/SABnzbd/scripts/">
Scripts
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_4" id="__nav_6_4" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_6_4" tabindex="0">
qBittorrent
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="qBittorrent" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_6_4">
<span class="md-nav__icon md-icon"></span>
qBittorrent
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../qBittorrent/Basic-Setup/">
Basic-Setup
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../qBittorrent/Paths/">
Paths
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../qBittorrent/How-to-add-categories/">
How to add Categories
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../qBittorrent/Port-forwarding/">
Port forwarding
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../qBittorrent/3rd-party-tools/">
3rd Party tools
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_4_6" id="__nav_6_4_6" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_6_4_6" tabindex="0">
Tips
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Tips" class="md-nav" data-md-level="3">
<label class="md-nav__title" for="__nav_6_4_6">
<span class="md-nav__icon md-icon"></span>
Tips
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/">
How to run the unRaid mover for qBittorent seeding torrents
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_5" id="__nav_6_5" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_6_5" tabindex="0">
Deluge
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Deluge" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_6_5">
<span class="md-nav__icon md-icon"></span>
Deluge
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../Deluge/">
Deluge Placeholder
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../Deluge/Deluge-Basic-Setup/">
Deluge - Basic Setup
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../Deluge/Deluge-how-to-add-labels/">
Deluge - How to add labels
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_6" id="__nav_6_6" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_6_6" tabindex="0">
ruTorrent
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="ruTorrent" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_6_6">
<span class="md-nav__icon md-icon"></span>
ruTorrent
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../ruTorrent/">
ruTorrent Placeholder
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../ruTorrent/ruTorrent-Basic-Setup/">
ruTorrent - Basic Setup
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" id="__nav_7" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_7" tabindex="0">
Plex
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Plex" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_7">
<span class="md-nav__icon md-icon"></span>
Plex
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Plex/">
Home
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7_2" id="__nav_7_2" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_7_2" tabindex="0">
Tips
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Tips" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_7_2">
<span class="md-nav__icon md-icon"></span>
Tips
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Plex/Tips/Plex-media-server/">
Suggested Plex Media Server Settings
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Plex/Tips/Optimal-plex-client-settings/">
Optimal Plex Client Settings
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Plex/Tips/4k-transcoding/">
JBOPS 4K Transcode Stopping with Tautulli
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="/Plex/profiles/">
Profiles
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" id="__nav_8" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_8" tabindex="0">
Misc
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Misc" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_8">
<span class="md-nav__icon md-icon"></span>
Misc
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Misc/">
Home
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Misc/how-to-provide-a-docker-compose/">
How to provide a docker compose
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Misc/How-to-setup-Torguard-for-port-forwarding/">
Setup TorGuard for port forwarding
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Misc/x265-4k/">
x265-4k and Golden Rule
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Misc/trash-sync/">
TRaSH Sync
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" id="__nav_9" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_9" tabindex="0">
Hardlinks
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="Hardlinks" class="md-nav" data-md-level="1">
<label class="md-nav__title" for="__nav_9">
<span class="md-nav__icon md-icon"></span>
Hardlinks
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/Hardlinks-and-Instant-Moves/">
Hardlinks - Atomic Moves
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9_2" id="__nav_9_2" type="checkbox"/>
<label aria-expanded="false" class="md-nav__link" for="__nav_9_2" tabindex="0">
How to setup for
<span class="md-nav__icon md-icon"></span>
</label>
<nav aria-label="How to setup for" class="md-nav" data-md-level="2">
<label class="md-nav__title" for="__nav_9_2">
<span class="md-nav__icon md-icon"></span>
How to setup for
</label>
<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for/">
How to setup for
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for/Docker/">
Docker
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for/Dockstarter/">
Dockstarter
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for/Native/">
Native
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for/Synology/">
Synology
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for/Unraid/">
Unraid
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/Examples/">
Examples
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/Check-if-hardlinks-are-working/">
Check if hardlinks are working
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/Replace-copies-with-hardlinks/">
Replace copies with hardlinks
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../../../Hardlinks/How-to-setup-for">
How-to-setup-for
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav aria-label="Table of contents" class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix="">
<li class="md-nav__item">
<a class="md-nav__link" href="#clean">
Clean
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#replace_for">
replace_for
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1 id="sabnzbd-scripts">SABnzbd Scripts<a class="headerlink" href="#sabnzbd-scripts" title="Permanent link"></a></h1>
<h2 id="clean">Clean<a class="headerlink" href="#clean" title="Permanent link"></a></h2>
<details class="info">
<summary>Clean NZB name</summary>
<ul>
<li>Title: <code>Clean.py</code></li>
<li>Author(s): ???</li>
<li>Made compatible for SABnzbd: AlexK</li>
</ul>
<p>Removes the following suffixes from NZB name:
NZBgeek / Obfuscated / BUYMORE / Scrambled /etc...
Cleans the NZB name by removing the retagged stuff (-Obfuscated, -postbox, etc).</p>
<p>Install Instructions:</p>
<ol>
<li>Copy script to sabnzbd's script folder</li>
<li>run: <code>sudo chmod +x Clean.py</code></li>
<li>in SABnzbd go to <code>Settings</code> =&gt; <code>Switches</code></li>
<li>Change Pre-queue user script and select: <code>Clean.py</code></li>
</ol>
<p><a class="glightbox" data-desc-position="bottom" data-height="auto" data-width="100%" href="/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png"><img alt="!Enable Clean.py" src="/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png"/></a></p>
</details>
<details class="example">
<summary>Script</summary>
<div class="highlight"><pre><span></span><code><span class="ch">#!/usr/bin/python3 -OO</span>
<span class="c1">##################################################################</span>
<span class="c1">### SABnzbd - Clean NZB Renamer ##</span>
<span class="c1">##################################################################</span>
<span class="c1">## NOTE: This script is considered ALPHA! ##</span>
<span class="c1">## ##</span>
<span class="c1">## Removes the suffixes from NZB name used by bots: ##</span>
<span class="c1">## examples: NZBgeek / Obfuscated / BUYMORE / Scrambled, etc.. ##</span>
<span class="c1">## ##</span>
<span class="c1">## NOTE: This script requires Python 3 ##</span>
<span class="c1">## ##</span>
<span class="c1">## Install: ##</span>
<span class="c1">## 1. Copy script to sabnzbd's script folder ##</span>
<span class="c1">## 2. run: sudo chmod +x Clean.py ##</span>
<span class="c1">## 3. in SABnzbd go to Config &gt; Switches ##</span>
<span class="c1">## 4. Change Pre-queue user script and select: Clean.py ##</span>
<span class="c1">##################################################################</span>
<span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">re</span>
<span class="k">try</span><span class="p">:</span>
<span class="p">(</span><span class="n">scriptname</span><span class="p">,</span> <span class="n">nzbname</span><span class="p">,</span> <span class="n">postprocflags</span><span class="p">,</span> <span class="n">category</span><span class="p">,</span> <span class="n">script</span><span class="p">,</span> <span class="n">prio</span><span class="p">,</span> <span class="n">downloadsize</span><span class="p">,</span> <span class="n">grouplist</span><span class="p">,</span> <span class="n">showname</span><span class="p">,</span> <span class="n">season</span><span class="p">,</span> <span class="n">episodenumber</span><span class="p">,</span> <span class="n">episodename</span><span class="p">)</span> <span class="o">=</span> <span class="n">sys</span><span class="o">.</span><span class="n">argv</span>
<span class="n">downloadsize</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">downloadsize</span><span class="p">)</span>
<span class="k">except</span><span class="p">:</span>
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="c1"># exit with 1 causes SABnzbd to ignore the output of this script</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">nzbname</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-4P$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-4Planet$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-AlternativeToRequested$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-AlteZachen$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-AsRequested$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-AsRequested-xpost$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-BUYMORE$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-Chamele0n$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-GEROV$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-iNC0GNiTO$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-NZBGeek$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-Obfuscated$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-Obfuscation$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-postbot$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-Rakuv[a-z0-9]*$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-RePACKPOST$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-Scrambled$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-WhiteRev$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-WRTEAM$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-CAPTCHA$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-Z0iDS3N$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)\[eztv\]$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)\[TGx\]$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)\[ettv\]$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)\[TGx\]-xpost$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i).mkv-xpost$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s1">'(?i)-xpost$'</span><span class="p">,</span> <span class="s1">''</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="n">fwp</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="sa">r</span><span class="s1">'(?i)(-D-Z0N3|\-[^-.\n]*)(\-.</span><span class="si">{4}</span><span class="s1">)?$'</span><span class="p">,</span> <span class="sa">r</span><span class="s1">'\1'</span><span class="p">,</span> <span class="n">fwp</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">"1"</span><span class="p">)</span> <span class="c1"># Accept</span>
<span class="nb">print</span><span class="p">(</span><span class="n">fwp</span><span class="p">)</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="c1"># 0 means OK</span>
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
</code></pre></div>
</details>
<h2 id="replace_for">replace_for<a class="headerlink" href="#replace_for" title="Permanent link"></a></h2>
<details class="info">
<summary>Replaces underscores with dots</summary>
<ul>
<li>Title: <code>replace_for.py</code></li>
<li>Author: miker</li>
</ul>
<p>Replaces underscores with dots in downloaded filename to prevent download loops with poorly named releases on some indexers (often HONE releases).</p>
<p>Install Instructions:</p>
<ol>
<li>Copy script to sabnzbd's script folder</li>
<li>run: <code>sudo chmod +x replace_for.py</code></li>
<li>in SABnzbd go to <code>Settings</code> =&gt; <code>Categories</code></li>
<li>Change script for required categories and select: <code>replace_for.py</code></li>
</ol>
<p><a class="glightbox" data-desc-position="bottom" data-height="auto" data-width="100%" href="/Downloaders/SABnzbd/images/sabnzbd-categories-replace_for.png"><img alt="!Enable replace_for.py" src="/Downloaders/SABnzbd/images/sabnzbd-categories-replace_for.png"/></a></p>
</details>
<details class="example">
<summary>Script</summary>
<div class="highlight"><pre><span></span><code><span class="ch">#!/usr/bin/python3 -OO</span>
<span class="c1">##################################################################</span>
<span class="c1">### SABnzbd - Replace underscores with dots ##</span>
<span class="c1">##################################################################</span>
<span class="c1">## ##</span>
<span class="c1">## NOTE: This script requires Python 3 ##</span>
<span class="c1">## ##</span>
<span class="c1">## Author: miker ##</span>
<span class="c1">## ##</span>
<span class="c1">## Install: ##</span>
<span class="c1">## 1. Copy script to sabnzbd's script folder ##</span>
<span class="c1">## 2. run: sudo chmod +x replace_for.py ##</span>
<span class="c1">## 3. in SABnzbd go to Config &gt; Categories ##</span>
<span class="c1">## 4. Assign replace_for.py to the required category ##</span>
<span class="c1">##################################################################</span>
<span class="kn">import</span> <span class="nn">sys</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">os.path</span>
<span class="k">try</span><span class="p">:</span>
<span class="p">(</span><span class="n">scriptname</span><span class="p">,</span> <span class="n">directory</span><span class="p">,</span> <span class="n">orgnzbname</span><span class="p">,</span> <span class="n">jobname</span><span class="p">,</span> <span class="n">reportnumber</span><span class="p">,</span> <span class="n">category</span><span class="p">,</span> <span class="n">group</span><span class="p">,</span> <span class="n">postprocstatus</span><span class="p">,</span> <span class="n">url</span><span class="p">)</span> <span class="o">=</span> <span class="n">sys</span><span class="o">.</span><span class="n">argv</span>
<span class="k">except</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">"No commandline parameters found"</span><span class="p">)</span>
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> <span class="c1"># exit with 1 causes SABnzbd to ignore the output of this script</span>
<span class="n">files</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">listdir</span><span class="p">(</span><span class="n">directory</span><span class="p">)</span>
<span class="k">for</span> <span class="n">src</span> <span class="ow">in</span> <span class="n">files</span><span class="p">:</span>
<span class="k">if</span> <span class="n">src</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="s2">"_"</span><span class="p">)</span> <span class="o">!=-</span><span class="mi">1</span><span class="p">:</span>
<span class="n">dst</span> <span class="o">=</span> <span class="n">src</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s1">'_'</span><span class="p">,</span> <span class="s1">'.'</span><span class="p">)</span>
<span class="n">os</span><span class="o">.</span><span class="n">rename</span> <span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">directory</span><span class="p">,</span><span class="n">src</span><span class="p">),</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">directory</span><span class="p">,</span><span class="n">dst</span><span class="p">)</span> <span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">src</span><span class="p">,</span> <span class="s2">"renamed to "</span><span class="p">,</span><span class="n">dst</span><span class="p">)</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="nb">print</span><span class="p">()</span>
<span class="c1"># 0 means OK</span>
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
</code></pre></div>
</details>
<hr/>
<div class="md-source-file">
<small>
Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime">September 28, 2022 14:02:19</span>
</small>
</div>
<footer class="sponsorship">
<hr/>
<a href="https://github.com/sponsors/TRaSH-" title="Buy me a Coffee"><img alt="Buy me a coffee" height="39" src="/img/buy-me-a-coffee.png" width="137"/>
</a>
<hr/>
</footer>
</article>
</div>
</div>
<a class="md-top md-icon" data-md-component="top" hidden="" href="#">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"></path></svg>
Back to top
</a>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
<div class="md-copyright__highlight">
Copyright © 2022 TRaSH
</div>
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" rel="noopener" target="_blank">
Material for MkDocs
</a>
</div>
<div class="md-social">
<a class="md-social__link" href="https://trash-guides.info/discord" rel="noopener" target="_blank" title="trash-guides.info">
<svg viewbox="0 0 640 512" xmlns="http://www.w3.org/2000/svg"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485.065 485.065 0 0 0 404.081 32.03a1.816 1.816 0 0 0-1.923.91 337.461 337.461 0 0 0-14.9 30.6 447.848 447.848 0 0 0-134.426 0 309.541 309.541 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.689 483.689 0 0 0-119.688 37.107 1.712 1.712 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.016 2.016 0 0 0 .765 1.375 487.666 487.666 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348.2 348.2 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321.173 321.173 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251.047 251.047 0 0 0 9.109-7.137 1.819 1.819 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.812 1.812 0 0 1 1.924.233 234.533 234.533 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.407 301.407 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391.055 391.055 0 0 0 30.014 48.815 1.864 1.864 0 0 0 2.063.7A486.048 486.048 0 0 0 610.7 405.729a1.882 1.882 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541ZM222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241Zm195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241Z"></path></svg>
</a>
<a class="md-social__link" href="https://github.com/TRaSH-/Guides" rel="noopener" target="_blank" title="github.com">
<svg viewbox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"></path></svg>
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": "../../..", "features": ["navigation.instant", "navigation.tabs", "navigation.top"], "search": "../../../assets/javascripts/workers/search.e5c33ebb.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
<script src="../../../assets/javascripts/bundle.51d95adb.min.js"></script>
<script>document$.subscribe(() => {const lightbox = GLightbox({"touchNavigation": true, "loop": false, "zoomable": true, "draggable": true, "openEffect": "zoom", "closeEffect": "zoom", "slideEffect": "slide"});})</script></body>
</html>