<!doctype html>
< html lang = "en" class = "no-js" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width,initial-scale=1" >
< meta name = "description" content = "Guides mainly for Sonarr/Radarr/Bazarr and everything related to it." >
< meta name = "author" content = "TRaSH" >
< link rel = "canonical" href = "https://trash-guides.info/Downloaders/NZBGet/scripts/" >
< link rel = "prev" href = "../Paths-and-Categories/" >
< link rel = "next" href = "../../SABnzbd/" >
< link rel = "icon" href = "../../../img/favicon.png" >
< meta name = "generator" content = "mkdocs-1.6.1, mkdocs-material-9.5.40" >
< title > NZBGet Scripts - TRaSH Guides< / title >
< link rel = "stylesheet" href = "../../../assets/stylesheets/main.8c3ca2c6.min.css" >
< link rel = "stylesheet" href = "../../../assets/stylesheets/palette.06af60db.min.css" >
< style > : root { --md-annotation-icon : url ( 'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 8C119 8 8 119.1 8 256c0 137 111 248 248 248s248-111 248-248C504 119.1 393 8 256 8zm0 448c-110.5 0-200-89.4-200-200 0-110.5 89.5-200 200-200 110.5 0 200 89.5 200 200 0 110.5-89.4 200-200 200zm107.2-255.2c0 67.1-72.4 68.1-72.4 92.9V300c0 6.6-5.4 12-12 12h-45.6c-6.6 0-12-5.4-12-12v-8.7c0-35.7 27.1-50 47.6-61.5 17.6-9.8 28.3-16.5 28.3-29.6 0-17.2-22-28.7-39.8-28.7-23.2 0-33.9 11-48.9 30-4.1 5.1-11.5 6.1-16.7 2.1l-27.8-21.1c-5.1-3.9-6.3-11.1-2.6-16.4C184.8 131.5 214.9 112 261.8 112c49.1 0 101.5 38.3 101.5 88.8zM298 368c0 23.2-18.8 42-42 42s-42-18.8-42-42 18.8-42 42-42 42 18.8 42 42z"/></svg>' ) ; } < / style >
< link rel = "preconnect" href = "https://fonts.gstatic.com" crossorigin >
< link rel = "stylesheet" href = "https://fonts.googleapis.com/css?family=Noto+Sans:300,300i,400,400i,700,700i%7CEncode+Sans+Expanded:400,400i,700,700i&display=fallback" >
< style > : root { --md-text-font : "Noto Sans" ; --md-code-font : "Encode Sans Expanded" } < / style >
< link rel = "stylesheet" href = "../../../stylesheets/extra.css" >
< link rel = "stylesheet" href = "../../../stylesheets/github-permalink-style.css" >
< 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 e ( ) { dataLayer . push ( arguments ) } window . dataLayer = window . dataLayer || [ ] , e ( "js" , new Date ) , e ( "config" , "G-ZZKM4MPQXL" ) , document . addEventListener ( "DOMContentLoaded" , ( function ( ) { document . forms . search && document . forms . search . query . addEventListener ( "blur" , ( function ( ) { this . value && e ( "event" , "search" , { search _term : this . value } ) } ) ) ; document $ . subscribe ( ( function ( ) { var t = document . forms . feedback ; if ( void 0 !== t ) for ( var a of t . querySelectorAll ( "[type=submit]" ) ) a . addEventListener ( "click" , ( function ( a ) { a . preventDefault ( ) ; var n = document . location . pathname , d = this . getAttribute ( "data-md-value" ) ; e ( "event" , "feedback" , { page : n , data : d } ) , t . firstElementChild . disabled = ! 0 ; var r = t . querySelector ( ".md-feedback__note [data-md-value='" + d + "']" ) ; r && ( r . hidden = ! 1 ) } ) ) , t . hidden = ! 1 } ) ) , location$ . subscribe ( ( function ( t ) { e ( "config" , "G-ZZKM4MPQXL" , { page _path : t . pathname } ) } ) ) } ) ) ; var t = document . createElement ( "script" ) ; t . async = ! 0 , t . src = "https://www.googletagmanager.com/gtag/js?id=G-ZZKM4MPQXL" , document . getElementById ( "__analytics" ) . insertAdjacentElement ( "afterEnd" , t ) } < / 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 dir = "ltr" data-md-color-scheme = "slate" data-md-color-primary = "indigo" data-md-color-accent = "blue" >
< input class = "md-toggle" data-md-toggle = "drawer" type = "checkbox" id = "__drawer" autocomplete = "off" >
< input class = "md-toggle" data-md-toggle = "search" type = "checkbox" id = "__search" autocomplete = "off" >
< label class = "md-overlay" for = "__drawer" > < / label >
< div data-md-component = "skip" >
< a href = "#nzbget-scripts" class = "md-skip" >
Skip to content
< / a >
< / div >
< div data-md-component = "announce" >
< / div >
< header class = "md-header" data-md-component = "header" >
< nav class = "md-header__inner md-grid" aria-label = "Header" >
< a href = "../../.." title = "TRaSH Guides" class = "md-header__button md-logo" aria-label = "TRaSH Guides" data-md-component = "logo" >
< img src = "../../../img/logo.png" alt = "logo" >
< / a >
< label class = "md-header__button md-icon" for = "__drawer" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" / > < / 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" >
NZBGet Scripts
< / span >
< / div >
< / div >
< / div >
< form class = "md-header__option" data-md-component = "palette" >
< input class = "md-option" data-md-color-media = "(prefers-color-scheme: dark)" data-md-color-scheme = "slate" data-md-color-primary = "indigo" data-md-color-accent = "blue" aria-label = "Switch to light mode" type = "radio" name = "__palette" id = "__palette_0" >
< label class = "md-header__button md-icon" title = "Switch to light mode" for = "__palette_1" hidden >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < 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 3" / > < / svg >
< / label >
< input class = "md-option" data-md-color-media = "(prefers-color-scheme: light)" data-md-color-scheme = "default" data-md-color-primary = "indigo" data-md-color-accent = "blue" aria-label = "Switch to dark mode" type = "radio" name = "__palette" id = "__palette_1" >
< label class = "md-header__button md-icon" title = "Switch to dark mode" for = "__palette_0" hidden >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < 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-6m0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4M7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3" / > < / svg >
< / label >
< / form >
< script > var palette = _ _md _get ( "__palette" ) ; if ( palette && palette . color ) { if ( "(prefers-color-scheme)" === palette . color . media ) { var media = matchMedia ( "(prefers-color-scheme: light)" ) , input = document . querySelector ( media . matches ? "[data-md-color-media='(prefers-color-scheme: light)']" : "[data-md-color-media='(prefers-color-scheme: dark)']" ) ; palette . color . media = input . getAttribute ( "data-md-color-media" ) , palette . color . scheme = input . getAttribute ( "data-md-color-scheme" ) , palette . color . primary = input . getAttribute ( "data-md-color-primary" ) , palette . color . accent = input . getAttribute ( "data-md-color-accent" ) } for ( var [ key , value ] of Object . entries ( palette . color ) ) document . body . setAttribute ( "data-md-color-" + key , value ) } < / script >
< label class = "md-header__button md-icon" for = "__search" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < 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.52 6.52 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 5" / > < / 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 type = "text" class = "md-search__input" name = "query" aria-label = "Search" placeholder = "Search" autocapitalize = "off" autocorrect = "off" autocomplete = "off" spellcheck = "false" data-md-component = "search-query" required >
< label class = "md-search__icon md-icon" for = "__search" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < 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.52 6.52 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 5" / > < / svg >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z" / > < / svg >
< / label >
< nav class = "md-search__options" aria-label = "Search" >
< button type = "reset" class = "md-search__icon md-icon" title = "Clear" aria-label = "Clear" tabindex = "-1" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < 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 12z" / > < / svg >
< / button >
< / nav >
< / form >
< div class = "md-search__output" >
< div class = "md-search__scrollwrap" tabindex = "0" 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 href = "https://github.com/TRaSH-Guides/Guides" title = "Go to repository" class = "md-source" data-md-component = "source" >
< div class = "md-source__icon md-icon" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 448 512" > <!-- ! Font Awesome Free 6.6.0 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 2024 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.81" / > < / svg >
< / div >
< div class = "md-source__repository" >
TRaSH-Guides
< / div >
< / a >
< / div >
< / nav >
< / header >
< div class = "md-container" data-md-component = "container" >
< nav class = "md-tabs" aria-label = "Tabs" data-md-component = "tabs" >
< div class = "md-grid" >
< ul class = "md-tabs__list" >
< li class = "md-tabs__item" >
< a href = "../../.." class = "md-tabs__link" >
Home
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Radarr/" class = "md-tabs__link" >
Radarr
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Sonarr/" class = "md-tabs__link" >
Sonarr
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Prowlarr/" class = "md-tabs__link" >
Prowlarr
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Lidarr/" class = "md-tabs__link" >
Lidarr
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Bazarr/" class = "md-tabs__link" >
Bazarr
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../File-and-Folder-Structure/" class = "md-tabs__link" >
File and Folder Structure
< / a >
< / li >
< li class = "md-tabs__item md-tabs__item--active" >
< a href = "../../" class = "md-tabs__link" >
Downloaders
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Plex/" class = "md-tabs__link" >
Plex
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Guide-Sync/" class = "md-tabs__link" >
Guide Sync
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Misc/" class = "md-tabs__link" >
Misc
< / a >
< / li >
< li class = "md-tabs__item" >
< a href = "../../../Glossary/" class = "md-tabs__link" >
Glossary
< / 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 class = "md-nav md-nav--primary md-nav--lifted" aria-label = "Navigation" data-md-level = "0" >
< label class = "md-nav__title" for = "__drawer" >
< a href = "../../.." title = "TRaSH Guides" class = "md-nav__button md-logo" aria-label = "TRaSH Guides" data-md-component = "logo" >
< img src = "../../../img/logo.png" alt = "logo" >
< / a >
TRaSH Guides
< / label >
< div class = "md-nav__source" >
< a href = "https://github.com/TRaSH-Guides/Guides" title = "Go to repository" class = "md-source" data-md-component = "source" >
< div class = "md-source__icon md-icon" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 448 512" > <!-- ! Font Awesome Free 6.6.0 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 2024 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.81" / > < / 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 href = "../../.." class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_2" >
< label class = "md-nav__link" for = "__nav_2" id = "__nav_2_label" tabindex = "0" >
< span class = "md-ellipsis" >
Radarr
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_2_label" aria-expanded = "false" >
< 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 href = "../../../Radarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Radarr-Quality-Settings-File-Size/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Quality Settings (File Size)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Radarr-recommended-naming-scheme/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Recommended naming scheme
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/radarr-setup-quality-profiles/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Quality Profiles
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/radarr-setup-quality-profiles-anime/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Quality Profiles (Anime)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/radarr-setup-quality-profiles-french-en/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Quality Profiles (French)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Radarr-import-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to import Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Radarr-how-to-update-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to Update Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Radarr-collection-of-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Collection of Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_2_10" >
< label class = "md-nav__link" for = "__nav_2_10" id = "__nav_2_10_label" tabindex = "0" >
< span class = "md-ellipsis" >
Tips
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_2_10_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_2_10" >
< span class = "md-nav__icon md-icon" > < / span >
Tips
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Tips/Merge-quality/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to Merge Quality
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Tips/Radarr-rename-your-folders/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to rename your folders
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Tips/How-to-setup-language-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Language Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Tips/Sync-2-radarr-sonarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to Sync 2 Radarr or Sonarr with each other
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Tips/Radarr-remote-path-mapping/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Remote Path Mappings
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Radarr/Tips/Radarr-show-unknown-movie-items/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Show Unknown Movie Items
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_3" >
< label class = "md-nav__link" for = "__nav_3" id = "__nav_3_label" tabindex = "0" >
< span class = "md-ellipsis" >
Sonarr
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_3_label" aria-expanded = "false" >
< 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 href = "../../../Sonarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Sonarr-Quality-Settings-File-Size/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Quality Settings (File Size)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Sonarr-recommended-naming-scheme/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Recommended naming scheme
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/sonarr-import-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to import Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/sonarr-how-to-update-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to Update Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/sonarr-setup-quality-profiles/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Quality Profiles
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/sonarr-setup-quality-profiles-anime/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Quality Profiles (Anime)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/sonarr-setup-quality-profiles-french-en/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Quality Profiles (French)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/sonarr-collection-of-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Collection of Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_3_10" >
< label class = "md-nav__link" for = "__nav_3_10" id = "__nav_3_10_label" tabindex = "0" >
< span class = "md-ellipsis" >
Tips
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_3_10_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_3_10" >
< span class = "md-nav__icon md-icon" > < / span >
Tips
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Tips/Merge-quality/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to Merge Quality
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Tips/Sonarr-rename-your-folders/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to rename your folders
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Tips/How-to-setup-language-custom-formats/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up Language Custom Formats
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Tips/Sync-2-radarr-sonarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to Sync 2 Radarr or Sonarr with each other
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Sonarr/Tips/Sonarr-remote-path-mapping/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Remote Path Mappings
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_4" >
< label class = "md-nav__link" for = "__nav_4" id = "__nav_4_label" tabindex = "0" >
< span class = "md-ellipsis" >
Prowlarr
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_4_label" aria-expanded = "false" >
< 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 href = "../../../Prowlarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Prowlarr/prowlarr-setup-proxy/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up proxy for certain indexers
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Prowlarr/prowlarr-setup-flaresolverr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up FlareSolverr
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Prowlarr/prowlarr-setup-limited-api/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to set up indexers with limited API
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_5" >
< label class = "md-nav__link" for = "__nav_5" id = "__nav_5_label" tabindex = "0" >
< span class = "md-ellipsis" >
Lidarr
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_5_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_5" >
< span class = "md-nav__icon md-icon" > < / span >
Lidarr
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Lidarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Lidarr
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_6" >
< label class = "md-nav__link" for = "__nav_6" id = "__nav_6_label" tabindex = "0" >
< span class = "md-ellipsis" >
Bazarr
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_6_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_6" >
< span class = "md-nav__icon md-icon" > < / span >
Bazarr
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Bazarr/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "https://wiki.bazarr.media/Getting-Started/Setup-Guide/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Basic-Guide (ext.link)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "https://wiki.bazarr.media/Getting-Started/First-time-installation-configuration/" class = "md-nav__link" >
< span class = "md-ellipsis" >
After Install Configuration (ext.link)
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Bazarr/Bazarr-suggested-scoring/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Suggested Scoring
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Bazarr/scripts/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Scripts
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_7" >
< label class = "md-nav__link" for = "__nav_7" id = "__nav_7_label" tabindex = "0" >
< span class = "md-ellipsis" >
File and Folder Structure
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_7_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_7" >
< span class = "md-nav__icon md-icon" > < / span >
File and Folder Structure
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/Hardlinks-and-Instant-Moves/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Hardlinks and Instant Moves
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_7_3" >
< label class = "md-nav__link" for = "__nav_7_3" id = "__nav_7_3_label" tabindex = "0" >
< span class = "md-ellipsis" >
How To Set Up
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_7_3_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_7_3" >
< span class = "md-nav__icon md-icon" > < / span >
How To Set Up
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How To Set Up
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/Docker/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Docker
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/Dockstarter/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Dockstarter
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/Native/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Native
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/Synology/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Synology
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/TrueNAS-Core/" class = "md-nav__link" >
< span class = "md-ellipsis" >
TrueNAS Core
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/Unraid/" class = "md-nav__link" >
< span class = "md-ellipsis" >
unRAID
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/How-to-set-up/Windows/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Windows
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/Examples/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Examples
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/Check-if-hardlinks-are-working/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Check if Hardlinks Are Working
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../File-and-Folder-Structure/Replace-copies-with-hardlinks/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Replace Copies With Hardlinks
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--active md-nav__item--section md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8" checked >
< label class = "md-nav__link" for = "__nav_8" id = "__nav_8_label" tabindex = "" >
< span class = "md-ellipsis" >
Downloaders
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_8_label" aria-expanded = "true" >
< label class = "md-nav__title" for = "__nav_8" >
< span class = "md-nav__icon md-icon" > < / span >
Downloaders
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--active md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_2" checked >
< label class = "md-nav__link" for = "__nav_8_2" id = "__nav_8_2_label" tabindex = "0" >
< span class = "md-ellipsis" >
NZBGet
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_8_2_label" aria-expanded = "true" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../Basic-Setup/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Basic-Setup
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../Paths-and-Categories/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Path and Categories
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Downloaders/NZBGet/scripts/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Scripts
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_3" >
< label class = "md-nav__link" for = "__nav_8_3" id = "__nav_8_3_label" tabindex = "0" >
< span class = "md-ellipsis" >
SABnzbd
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_8_3_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../../SABnzbd/Basic-Setup/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Basic-Setup
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../SABnzbd/Paths-and-Categories/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Path and Categories
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Downloaders/SABnzbd/scripts/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Scripts
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_4" >
< label class = "md-nav__link" for = "__nav_8_4" id = "__nav_8_4_label" tabindex = "0" >
< span class = "md-ellipsis" >
qBittorrent
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_8_4_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../../qBittorrent/Basic-Setup/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Basic-Setup
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../qBittorrent/Paths/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Paths
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../qBittorrent/How-to-add-categories/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to add Categories
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../qBittorrent/Port-forwarding/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Port forwarding
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../qBittorrent/3rd-party-tools/" class = "md-nav__link" >
< span class = "md-ellipsis" >
3rd Party tools
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_4_6" >
< label class = "md-nav__link" for = "__nav_8_4_6" id = "__nav_8_4_6_label" tabindex = "0" >
< span class = "md-ellipsis" >
Tips
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "3" aria-labelledby = "__nav_8_4_6_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../../qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent/" class = "md-nav__link" >
< span class = "md-ellipsis" >
unRAID Mover and qBittorrent
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../qBittorrent/Tips/Themes/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Themes
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_5" >
< label class = "md-nav__link" for = "__nav_8_5" id = "__nav_8_5_label" tabindex = "0" >
< span class = "md-ellipsis" >
Deluge
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_8_5_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../../Deluge/Installing/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Installing
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../Deluge/Basic-Setup/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Basic-Setup
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../Deluge/Using-Labels/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Using Labels
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../Deluge/Port-Forwarding/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Port forwarding
< / span >
< / a >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_5_5" >
< label class = "md-nav__link" for = "__nav_8_5_5" id = "__nav_8_5_5_label" tabindex = "0" >
< span class = "md-ellipsis" >
Tips
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "3" aria-labelledby = "__nav_8_5_5_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../../Deluge/Tips/Plugins/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Plugins
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../Deluge/Tips/Thin-Client/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Thin Client
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../Deluge/Tips/Unraid-Mover/" class = "md-nav__link" >
< span class = "md-ellipsis" >
unRAID Mover and Deluge
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_8_6" >
< label class = "md-nav__link" for = "__nav_8_6" id = "__nav_8_6_label" tabindex = "0" >
< span class = "md-ellipsis" >
ruTorrent
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "2" aria-labelledby = "__nav_8_6_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_8_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 href = "../../ruTorrent/" class = "md-nav__link" >
< span class = "md-ellipsis" >
ruTorrent Placeholder
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../ruTorrent/ruTorrent-Basic-Setup/" class = "md-nav__link" >
< span class = "md-ellipsis" >
ruTorrent - Basic Setup
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_9" >
< label class = "md-nav__link" for = "__nav_9" id = "__nav_9_label" tabindex = "0" >
< span class = "md-ellipsis" >
Plex
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_9_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_9" >
< span class = "md-nav__icon md-icon" > < / span >
Plex
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Plex/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Plex/Tips/Plex-media-server/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Suggested Plex Media Server Settings
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Plex/Tips/Optimal-plex-client-settings/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Optimal Plex Client Settings
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Plex/what-does-my-media-player-support/" class = "md-nav__link" >
< span class = "md-ellipsis" >
What does my media player support
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Plex/Tips/4k-transcoding/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Stop 4k Video Transcoding
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "/Plex/profiles/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Profiles
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_10" >
< label class = "md-nav__link" for = "__nav_10" id = "__nav_10_label" tabindex = "0" >
< span class = "md-ellipsis" >
Guide Sync
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_10_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_10" >
< span class = "md-nav__icon md-icon" > < / span >
Guide Sync
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Guide-Sync/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_11" >
< label class = "md-nav__link" for = "__nav_11" id = "__nav_11_label" tabindex = "0" >
< span class = "md-ellipsis" >
Misc
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_11_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_11" >
< span class = "md-nav__icon md-icon" > < / span >
Misc
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Misc/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Misc/how-to-provide-a-docker-compose/" class = "md-nav__link" >
< span class = "md-ellipsis" >
How to provide a docker compose
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Misc/How-to-setup-Torguard-for-port-forwarding/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Setup TorGuard for port forwarding
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "../../../Misc/x265-4k/" class = "md-nav__link" >
< span class = "md-ellipsis" >
x265-4k and Golden Rule
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / li >
< li class = "md-nav__item md-nav__item--nested" >
< input class = "md-nav__toggle md-toggle " type = "checkbox" id = "__nav_12" >
< label class = "md-nav__link" for = "__nav_12" id = "__nav_12_label" tabindex = "0" >
< span class = "md-ellipsis" >
Glossary
< / span >
< span class = "md-nav__icon md-icon" > < / span >
< / label >
< nav class = "md-nav" data-md-level = "1" aria-labelledby = "__nav_12_label" aria-expanded = "false" >
< label class = "md-nav__title" for = "__nav_12" >
< span class = "md-nav__icon md-icon" > < / span >
Glossary
< / label >
< ul class = "md-nav__list" data-md-scrollfix >
< li class = "md-nav__item" >
< a href = "../../../Glossary/" class = "md-nav__link" >
< span class = "md-ellipsis" >
Home
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / 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 class = "md-nav md-nav--secondary" aria-label = "Table of contents" >
< 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 href = "#clean" class = "md-nav__link" >
< span class = "md-ellipsis" >
Clean
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "#hashrenamer" class = "md-nav__link" >
< span class = "md-ellipsis" >
HashRenamer
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "#replace_for" class = "md-nav__link" >
< span class = "md-ellipsis" >
replace_for
< / span >
< / a >
< / li >
< li class = "md-nav__item" >
< a href = "#wtfnzb-renamer" class = "md-nav__link" >
< span class = "md-ellipsis" >
WtFnZb-Renamer
< / span >
< / a >
< / li >
< / ul >
< / nav >
< / div >
< / div >
< / div >
< div class = "md-content" data-md-component = "content" >
< article class = "md-content__inner md-typeset" >
< a href = "https://github.com/TRaSH-Guides/Guides/edit/master/docs/Downloaders/NZBGet/scripts/index.md" title = "Edit this page" class = "md-content__button md-icon" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M10 20H6V4h7v5h5v3.1l2-2V8l-6-6H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h4zm10.2-7c.1 0 .3.1.4.2l1.3 1.3c.2.2.2.6 0 .8l-1 1-2.1-2.1 1-1c.1-.1.2-.2.4-.2m0 3.9L14.1 23H12v-2.1l6.1-6.1z" / > < / svg >
< / a >
< a href = "https://github.com/TRaSH-Guides/Guides/raw/master/docs/Downloaders/NZBGet/scripts/index.md" title = "View source of this page" class = "md-content__button md-icon" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M17 18c.56 0 1 .44 1 1s-.44 1-1 1-1-.44-1-1 .44-1 1-1m0-3c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5M9.27 20H6V4h7v5h5v4.07c.7.08 1.36.25 2 .49V8l-6-6H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.5a8.2 8.2 0 0 1-1.23-2" / > < / svg >
< / a >
< h1 id = "nzbget-scripts" > NZBGet Scripts< a class = "headerlink" href = "#nzbget-scripts" title = "Permanent link" > < / a > < / h1 >
< div class = "admonition note" >
< p class = "admonition-title" > NZBGet development has been picked up again by new developers over at < a href = "https://github.com/nzbgetcom/nzbget" rel = "noopener noreferrer" target = "_blank" > github< / a > !< / p >
< / div >
< p > A collection of community-provided and maintained scripts for NZBGet.< / p >
< p > If you have a script you want to share, don't hesitate to create a < a href = "https://github.com/TRaSH-Guides/Guides/blob/master/CONTRIBUTING.md" > PR< / a > for it.< / p >
< div class = "admonition warning" >
< p class = "admonition-title" > Because these scripts are community-provided and maintained we can't assure that they are still 100% working< / p >
< / div >
< 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 >
< / 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 >
< / details >
< details class = "example" >
< summary > Script< / summary >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "ch" > #!/usr/bin/env python3< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > ### NZBGET SCAN SCRIPT ###< / span >
< span class = "c1" > # Clean NZB name.< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # Removes the following suffixes from NZB name:< / span >
< span class = "c1" > # NZBgeek / Obfuscated / BUYMORE / Scrambled.< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # NOTE: This script requires Python to be installed on your system.< / span >
< span class = "c1" > ### NZBGET SCAN SCRIPT ###< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "kn" > from< / span > < span class = "nn" > __future__< / span > < span class = "kn" > import< / span > < span class = "n" > print_function< / span >
< span class = "kn" > import< / span > < span class = "nn" > os< / span > < span class = "o" > ,< / span > < span class = "nn" > re< / span > < span class = "o" > ,< / span > < span class = "nn" > sys< / span >
< span class = "c1" > # Exit codes used by NZBGet< / span >
< span class = "n" > POSTPROCESS_SUCCESS< / span > < span class = "o" > =< / span > < span class = "mi" > 93< / span >
< span class = "n" > POSTPROCESS_ERROR< / span > < span class = "o" > =< / span > < span class = "mi" > 94< / span >
< span class = "n" > POSTPROCESS_SKIP< / span > < span class = "o" > =< / span > < span class = "mi" > 95< / span >
< span class = "c1" > # Check if the script is called from NZBGet 13.0 or later< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "s2" > " NZBOP_SCRIPTDIR" < / span > < span class = "ow" > in< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " *** NZBGet post-processing script ***" < / span > < span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " This script is supposed to be called from NZBGet (13.0 or later)." < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "s2" > " NZBNP_NZBNAME" < / span > < span class = "ow" > in< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [WARN] Filename not found in environment" < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "n" > fwp< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBNP_NZBNAME" < / 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 = "s2" > " (?i)-4P\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-4Planet\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-AlternativeToRequested\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-AlteZachen\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-AsRequested\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-AsRequested-xpost\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-BUYMORE\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-Chamele0n\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-GEROV\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-iNC0GNiTO\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-NZBGeek\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-Obfuscated\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-Obfuscation\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-postbot\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-Rakuv[a-z0-9]*\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-RePACKPOST\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-Scrambled\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-WhiteRev\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-WRTEAM\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-CAPTCHA\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-Z0iDS3N\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)\[eztv([ ._-]re)?\]\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)\[TGx\]\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)\[ettv\]\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)\[TGx\]-xpost\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i).mkv-xpost\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)-xpost\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "s2" > " .nzb" < / 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 = "s2" > " (?i)(-D-Z0N3|\-[^-.\n]*)(\-.< / span > < span class = "si" > {4}< / span > < span class = "s2" > )?\.nzb$" < / span > < span class = "p" > ,< / span > < span class = "sa" > r< / span > < span class = "s2" > " \1.nzb" < / span > < span class = "p" > ,< / span > < span class = "n" > fwp< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "n" > fwp< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [NZB] NZBNAME=" < / span > < span class = "p" > ,< / span > < span class = "n" > fwp< / span > < span class = "p" > ,< / span > < span class = "n" > sep< / span > < span class = "o" > =< / span > < span class = "s2" > " " < / 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 = "n" > POSTPROCESS_SUCCESS< / span > < span class = "p" > )< / span >
< / code > < / pre > < / div >
< / details >
< h2 id = "hashrenamer" > HashRenamer< a class = "headerlink" href = "#hashrenamer" title = "Permanent link" > < / a > < / h2 >
< details class = "info" >
< summary > Renames hashed media files to match the source NZB< / summary >
< ul >
< li > Title: < code > HashRenamer.py< / code > < / li >
< li > Author(s): l3uddz< / li >
< li > URL: < a href = "https://github.com/cloudbox/cloudbox" rel = "noopener noreferrer" target = "_blank" > github.com/cloudbox/cloudbox< / a > < / li >
< / ul >
< p > Part of the Cloudbox project: < a href = "https://cloudbox.works" > https://cloudbox.works< / a >
Built on top of the NZBGet scripts template created by < a href = "https://github.com/clinton-hall" rel = "noopener noreferrer" target = "_blank" > Clinton Hall< / a > .
Released under GNU General Public License v2.0< / p >
< / details >
< details class = "example" >
< summary > Script< / summary >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "ch" > #!/usr/bin/env python3< / span >
< span class = "c1" > #< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > # Title: HashRenamer.py #< / span >
< span class = "c1" > # Author(s): l3uddz, desimaniac #< / span >
< span class = "c1" > # URL: https://github.com/l3uddz/nzbgetScripts #< / span >
< span class = "c1" > # Description: Renames hashed media files to match the source NZB. #< / span >
< span class = "c1" > # -- #< / span >
< span class = "c1" > # Part of the Cloudbox project: https://cloudbox.works #< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > # Built on top of the NZBGet scripts template created by Clinton Hall #< / span >
< span class = "c1" > # (https://github.com/clinton-hall). #< / span >
< span class = "c1" > # Released under GNU General Public License v2.0 #< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > ### NZBGET POST-PROCESSING SCRIPT ###< / span >
< span class = "c1" > # Rename files with hashes for file name< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # NOTE: This script requires Python to be installed on your system.< / span >
< span class = "c1" > #< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > ### NZBGET POST-PROCESSING SCRIPT ###< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "kn" > import< / span > < span class = "nn" > os< / span >
< span class = "kn" > import< / span > < span class = "nn" > re< / span >
< span class = "kn" > import< / span > < span class = "nn" > shutil< / span >
< span class = "kn" > import< / span > < span class = "nn" > sys< / span >
< span class = "c1" > # NZBGet Exit Codes< / span >
< span class = "n" > NZBGET_POSTPROCESS_PARCHECK< / span > < span class = "o" > =< / span > < span class = "mi" > 92< / span >
< span class = "n" > NZBGET_POSTPROCESS_SUCCESS< / span > < span class = "o" > =< / span > < span class = "mi" > 93< / span >
< span class = "n" > NZBGET_POSTPROCESS_ERROR< / span > < span class = "o" > =< / span > < span class = "mi" > 94< / span >
< span class = "n" > NZBGET_POSTPROCESS_NONE< / span > < span class = "o" > =< / span > < span class = "mi" > 95< / span >
< span class = "c1" > ############################################################< / span >
< span class = "c1" > # EXTENSION STUFF< / span >
< span class = "c1" > ############################################################< / span >
< span class = "k" > def< / span > < span class = "nf" > do_check< / span > < span class = "p" > ():< / span >
< span class = "k" > if< / span > < span class = "s2" > " NZBOP_SCRIPTDIR" < / span > < span class = "ow" > not< / span > < span class = "ow" > in< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " This script can only be called from NZBGet (11.0 or later)." < / 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" > 0< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBOP_VERSION" < / span > < span class = "p" > ][< / span > < span class = "mi" > 0< / span > < span class = "p" > :< / span > < span class = "mi" > 5< / span > < span class = "p" > ]< / span > < span class = "o" > < < / span > < span class = "s2" > " 11.0" < / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] NZBGet Version < / span > < span class = "si" > %s< / span > < span class = "s2" > is not supported. Please update NZBGet." < / span >
< span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "nb" > str< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBOP_VERSION" < / span > < span class = "p" > ]))< / 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" > 0< / span > < span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " Script triggered from NZBGet Version < / span > < span class = "si" > %s< / span > < span class = "s2" > ." < / span > < span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "nb" > str< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBOP_VERSION" < / span > < span class = "p" > ]))< / span >
< span class = "p" > )< / span >
< span class = "n" > status< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span >
< span class = "k" > if< / span > < span class = "s2" > " NZBPP_TOTALSTATUS" < / span > < span class = "ow" > in< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > :< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_TOTALSTATUS" < / span > < span class = "p" > ]< / span > < span class = "o" > ==< / span > < span class = "s2" > " SUCCESS" < / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] Download failed with status < / span > < span class = "si" > %s< / span > < span class = "s2" > ." < / span > < span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_STATUS" < / span > < span class = "p" > ])< / span >
< span class = "p" > )< / span >
< span class = "n" > status< / span > < span class = "o" > =< / span > < span class = "mi" > 1< / span >
< span class = "k" > else< / span > < span class = "p" > :< / span >
< span class = "c1" > # Check par status< / span >
< span class = "k" > if< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_PARSTATUS" < / span > < span class = "p" > ]< / span > < span class = "o" > ==< / span > < span class = "s2" > " 1" < / span > < span class = "ow" > or< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_PARSTATUS" < / span > < span class = "p" > ]< / span > < span class = "o" > ==< / span > < span class = "s2" > " 4" < / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s1" > ' [ERROR] Par-repair failed, setting status " failed" .' < / span > < span class = "p" > )< / span >
< span class = "n" > status< / span > < span class = "o" > =< / span > < span class = "mi" > 1< / span >
< span class = "c1" > # Check unpack status< / span >
< span class = "k" > if< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_UNPACKSTATUS" < / span > < span class = "p" > ]< / span > < span class = "o" > ==< / span > < span class = "s2" > " 1" < / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s1" > ' [ERROR] Unpack failed, setting status " failed" .' < / span > < span class = "p" > )< / span >
< span class = "n" > status< / span > < span class = "o" > =< / span > < span class = "mi" > 1< / span >
< span class = "k" > if< / span > < span class = "p" > (< / span >
< span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_UNPACKSTATUS" < / span > < span class = "p" > ]< / span > < span class = "o" > ==< / span > < span class = "s2" > " 0" < / span >
< span class = "ow" > and< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_PARSTATUS" < / span > < span class = "p" > ]< / span > < span class = "o" > ==< / span > < span class = "s2" > " 0" < / span >
< span class = "p" > ):< / span >
< span class = "c1" > # Unpack was skipped due to nzb-file properties or due to errors during par-check< / span >
< span class = "k" > if< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_HEALTH" < / span > < span class = "p" > ]< / span > < span class = "o" > < < / span > < span class = "mi" > 1000< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] Download health is compromised and Par-check/repair disabled or no .par2 files found. " < / span >
< span class = "s1" > ' Setting status " failed" .' < / span >
< span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] Please check your Par-check/repair settings for future downloads." < / span >
< span class = "p" > )< / span >
< span class = "n" > status< / span > < span class = "o" > =< / span > < span class = "mi" > 1< / span >
< span class = "k" > else< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] Par-check/repair disabled or no .par2 files found, and Unpack not required. Health is " < / span >
< span class = "s2" > " ok so handle as though download successful." < / span >
< span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [WARNING] Please check your Par-check/repair settings for future downloads." < / span >
< span class = "p" > )< / span >
< span class = "c1" > # Check if destination directory exists (important for reprocessing of history items)< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > isdir< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_DIRECTORY" < / span > < span class = "p" > ]):< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] Nothing to post-process: destination directory" < / span > < span class = "p" > ,< / span >
< span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_DIRECTORY" < / span > < span class = "p" > ],< / span >
< span class = "s1" > ' doesn< / span > < span class = "se" > \' < / span > < span class = "s1" > t exist. Setting status " failed" .' < / span > < span class = "p" > ,< / span >
< span class = "p" > )< / span >
< span class = "n" > status< / span > < span class = "o" > =< / span > < span class = "mi" > 1< / span >
< span class = "c1" > # All checks done, now launching the script.< / span >
< span class = "k" > if< / span > < span class = "n" > status< / span > < span class = "o" > ==< / span > < span class = "mi" > 1< / 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 = "n" > NZBGET_POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "k" > def< / span > < span class = "nf" > get_file_name< / span > < span class = "p" > (< / span > < span class = "n" > path< / span > < span class = "p" > ):< / span >
< span class = "k" > try< / span > < span class = "p" > :< / span >
< span class = "n" > file_name< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > basename< / span > < span class = "p" > (< / span > < span class = "n" > path< / span > < span class = "p" > )< / span >
< span class = "n" > extensions< / span > < span class = "o" > =< / span > < span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > findall< / span > < span class = "p" > (< / span > < span class = "sa" > r< / span > < span class = "s2" > " \.([^.]+)" < / span > < span class = "p" > ,< / span > < span class = "n" > file_name< / span > < span class = "p" > )< / span >
< span class = "n" > ext< / span > < span class = "o" > =< / span > < span class = "s2" > " ." < / span > < span class = "o" > .< / span > < span class = "n" > join< / span > < span class = "p" > (< / span > < span class = "n" > extensions< / span > < span class = "p" > )< / span >
< span class = "n" > name< / span > < span class = "o" > =< / span > < span class = "n" > file_name< / span > < span class = "o" > .< / span > < span class = "n" > replace< / span > < span class = "p" > (< / span > < span class = "s2" > " .< / span > < span class = "si" > %s< / span > < span class = "s2" > " < / span > < span class = "o" > %< / span > < span class = "n" > ext< / span > < span class = "p" > ,< / span > < span class = "s2" > " " < / span > < span class = "p" > )< / span >
< span class = "k" > return< / span > < span class = "n" > name< / span > < span class = "p" > ,< / span > < span class = "n" > ext< / span >
< span class = "k" > except< / span > < span class = "ne" > Exception< / span > < span class = "p" > :< / span >
< span class = "k" > pass< / span >
< span class = "k" > return< / span > < span class = "kc" > None< / span >
< span class = "k" > def< / span > < span class = "nf" > is_file_hash< / span > < span class = "p" > (< / span > < span class = "n" > file_name< / span > < span class = "p" > ):< / span >
< span class = "n" > hash_regexp< / span > < span class = "o" > =< / span > < span class = "p" > [< / span >
< span class = "sa" > r< / span > < span class = "s2" > " ^[a-fA-F0-9]< / span > < span class = "si" > {40}< / span > < span class = "s2" > $" < / span > < span class = "p" > ,< / span >
< span class = "sa" > r< / span > < span class = "s2" > " ^[a-fA-F0-9]< / span > < span class = "si" > {32}< / span > < span class = "s2" > $" < / span > < span class = "p" > ,< / span >
< span class = "sa" > r< / span > < span class = "s2" > " ^[a-f0-9]< / span > < span class = "si" > {128}< / span > < span class = "s2" > $" < / span > < span class = "p" > ,< / span >
< span class = "sa" > r< / span > < span class = "s2" > " ^[a-zA-Z0-9]< / span > < span class = "si" > {42}< / span > < span class = "s2" > $" < / span > < span class = "p" > ,< / span >
< span class = "p" > ]< / span >
< span class = "k" > for< / span > < span class = "nb" > hash< / span > < span class = "ow" > in< / span > < span class = "n" > hash_regexp< / span > < span class = "p" > :< / span >
< span class = "k" > if< / span > < span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > match< / span > < span class = "p" > (< / span > < span class = "nb" > hash< / span > < span class = "p" > ,< / span > < span class = "n" > file_name< / span > < span class = "p" > ):< / span >
< span class = "k" > return< / span > < span class = "kc" > True< / span >
< span class = "k" > return< / span > < span class = "kc" > False< / span >
< span class = "k" > def< / span > < span class = "nf" > find_files< / span > < span class = "p" > (< / span > < span class = "n" > folder< / span > < span class = "p" > ,< / span > < span class = "n" > extension< / span > < span class = "o" > =< / span > < span class = "kc" > None< / span > < span class = "p" > ,< / span > < span class = "n" > depth< / span > < span class = "o" > =< / span > < span class = "kc" > None< / span > < span class = "p" > ):< / span >
< span class = "n" > file_list< / span > < span class = "o" > =< / span > < span class = "p" > []< / span >
< span class = "n" > start_count< / span > < span class = "o" > =< / span > < span class = "n" > folder< / span > < span class = "o" > .< / span > < span class = "n" > count< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > sep< / span > < span class = "p" > )< / span >
< span class = "k" > for< / span > < span class = "n" > path< / span > < span class = "p" > ,< / span > < span class = "n" > subdirs< / span > < span class = "p" > ,< / span > < span class = "n" > files< / span > < span class = "ow" > in< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > walk< / span > < span class = "p" > (< / span > < span class = "n" > folder< / span > < span class = "p" > ,< / span > < span class = "n" > topdown< / span > < span class = "o" > =< / span > < span class = "kc" > True< / span > < span class = "p" > ):< / span >
< span class = "k" > for< / span > < span class = "n" > name< / span > < span class = "ow" > in< / span > < span class = "n" > files< / span > < span class = "p" > :< / span >
< span class = "k" > if< / span > < span class = "n" > depth< / span > < span class = "ow" > and< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > count< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > sep< / span > < span class = "p" > )< / span > < span class = "o" > -< / span > < span class = "n" > start_count< / span > < span class = "o" > > =< / span > < span class = "n" > depth< / span > < span class = "p" > :< / span >
< span class = "k" > del< / span > < span class = "n" > subdirs< / span > < span class = "p" > [:]< / span >
< span class = "k" > continue< / span >
< span class = "n" > file< / span > < span class = "o" > =< / 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" > path< / span > < span class = "p" > ,< / span > < span class = "n" > name< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > extension< / span > < span class = "p" > :< / span >
< span class = "n" > file_list< / span > < span class = "o" > .< / span > < span class = "n" > append< / span > < span class = "p" > (< / span > < span class = "n" > file< / span > < span class = "p" > )< / span >
< span class = "k" > else< / span > < span class = "p" > :< / span >
< span class = "k" > if< / span > < span class = "n" > file< / span > < span class = "o" > .< / span > < span class = "n" > lower< / span > < span class = "p" > ()< / span > < span class = "o" > .< / span > < span class = "n" > endswith< / span > < span class = "p" > (< / span > < span class = "n" > extension< / span > < span class = "o" > .< / span > < span class = "n" > lower< / span > < span class = "p" > ()):< / span >
< span class = "n" > file_list< / span > < span class = "o" > .< / span > < span class = "n" > append< / span > < span class = "p" > (< / span > < span class = "n" > file< / span > < span class = "p" > )< / span >
< span class = "k" > return< / span > < span class = "nb" > sorted< / span > < span class = "p" > (< / span > < span class = "n" > file_list< / span > < span class = "p" > ,< / span > < span class = "n" > key< / span > < span class = "o" > =< / span > < span class = "k" > lambda< / span > < span class = "n" > x< / span > < span class = "p" > :< / span > < span class = "n" > x< / span > < span class = "o" > .< / span > < span class = "n" > count< / 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" > sep< / span > < span class = "p" > ),< / span > < span class = "n" > reverse< / span > < span class = "o" > =< / span > < span class = "kc" > True< / span > < span class = "p" > )< / span >
< span class = "c1" > ############################################################< / span >
< span class = "c1" > # MAIN< / span >
< span class = "c1" > ############################################################< / span >
< span class = "c1" > # do checks< / span >
< span class = "n" > do_check< / span > < span class = "p" > ()< / span >
< span class = "c1" > # retrieve required variables< / span >
< span class = "n" > directory< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > normpath< / span > < span class = "p" > (< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_DIRECTORY" < / span > < span class = "p" > ])< / span >
< span class = "n" > nzb_name< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_NZBFILENAME" < / span > < span class = "p" > ]< / span >
< span class = "k" > if< / span > < span class = "n" > nzb_name< / span > < span class = "ow" > is< / span > < span class = "kc" > None< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [ERROR] Unable to retrieve NZBPP_NZBFILENAME" < / 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 = "n" > NZBGET_POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "n" > nzb_name< / span > < span class = "o" > =< / span > < span class = "n" > nzb_name< / span > < span class = "o" > .< / span > < span class = "n" > replace< / span > < span class = "p" > (< / span > < span class = "s2" > " .nzb" < / span > < span class = "p" > ,< / span > < span class = "s2" > " " < / span > < span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > ((< / span > < span class = "s1" > ' [INFO] Using " < / span > < span class = "si" > %s< / span > < span class = "s1" > " for hashed filenames' < / span > < span class = "o" > %< / span > < span class = "n" > nzb_name< / span > < span class = "p" > ))< / span >
< span class = "nb" > print< / span > < span class = "p" > ((< / span > < span class = "s1" > ' [INFO] Scanning " < / span > < span class = "si" > %s< / span > < span class = "s1" > " for hashed filenames' < / span > < span class = "o" > %< / span > < span class = "n" > directory< / span > < span class = "p" > ))< / span >
< span class = "c1" > # scan for files< / span >
< span class = "n" > found_files< / span > < span class = "o" > =< / span > < span class = "n" > find_files< / span > < span class = "p" > (< / span > < span class = "n" > directory< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > found_files< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > ((< / span > < span class = "s1" > ' [INFO] No files were found in " < / span > < span class = "si" > %s< / span > < span class = "s1" > " ' < / span > < span class = "o" > %< / span > < span class = "n" > directory< / 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 = "n" > NZBGET_POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "k" > else< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > ((< / span > < span class = "s2" > " [INFO] Found < / span > < span class = "si" > %d< / span > < span class = "s2" > files to check for hashed filenames" < / span > < span class = "o" > %< / span > < span class = "nb" > len< / span > < span class = "p" > (< / span > < span class = "n" > found_files< / span > < span class = "p" > )))< / span >
< span class = "c1" > # loop files checking for file hash< / span >
< span class = "n" > moved_files< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span >
< span class = "k" > for< / span > < span class = "n" > found_file_path< / span > < span class = "ow" > in< / span > < span class = "n" > found_files< / span > < span class = "p" > :< / span >
< span class = "c1" > # set variable< / span >
< span class = "n" > dir_name< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > dirname< / span > < span class = "p" > (< / span > < span class = "n" > found_file_path< / span > < span class = "p" > )< / span >
< span class = "n" > file_name< / span > < span class = "p" > ,< / span > < span class = "n" > file_ext< / span > < span class = "o" > =< / span > < span class = "n" > get_file_name< / span > < span class = "p" > (< / span > < span class = "n" > found_file_path< / span > < span class = "p" > )< / span >
< span class = "c1" > # is this a file hash< / span >
< span class = "k" > if< / span > < span class = "n" > is_file_hash< / span > < span class = "p" > (< / span > < span class = "n" > file_name< / span > < span class = "p" > ):< / span >
< span class = "n" > new_file_path< / span > < span class = "o" > =< / 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" > dir_name< / span > < span class = "p" > ,< / span > < span class = "s2" > " < / span > < span class = "si" > %s< / span > < span class = "s2" > .< / span > < span class = "si" > %s< / span > < span class = "s2" > " < / span > < span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "n" > nzb_name< / span > < span class = "p" > ,< / span > < span class = "n" > file_ext< / span > < span class = "p" > ))< / span >
< span class = "nb" > print< / span > < span class = "p" > ((< / span > < span class = "s1" > ' [INFO] Moving " < / span > < span class = "si" > %s< / span > < span class = "s1" > " to " < / span > < span class = "si" > %s< / span > < span class = "s1" > " ' < / span > < span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "n" > found_file_path< / span > < span class = "p" > ,< / span > < span class = "n" > new_file_path< / span > < span class = "p" > )))< / span >
< span class = "k" > try< / span > < span class = "p" > :< / span >
< span class = "n" > shutil< / span > < span class = "o" > .< / span > < span class = "n" > move< / span > < span class = "p" > (< / span > < span class = "n" > found_file_path< / span > < span class = "p" > ,< / span > < span class = "n" > new_file_path< / span > < span class = "p" > )< / span >
< span class = "n" > moved_files< / span > < span class = "o" > +=< / span > < span class = "mi" > 1< / span >
< span class = "k" > except< / span > < span class = "ne" > Exception< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "p" > (< / span >
< span class = "s1" > ' [ERROR] Failed moving " < / span > < span class = "si" > %s< / span > < span class = "s1" > " to " < / span > < span class = "si" > %s< / span > < span class = "s1" > " ' < / span >
< span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "n" > found_file_path< / span > < span class = "p" > ,< / span > < span class = "n" > new_file_path< / span > < span class = "p" > )< / span >
< span class = "p" > )< / span >
< span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "p" > (< / span > < span class = "s1" > ' [INFO] Finished processing " < / span > < span class = "si" > %s< / span > < span class = "s1" > " , moved < / span > < span class = "si" > %d< / span > < span class = "s1" > files' < / span > < span class = "o" > %< / span > < span class = "p" > (< / span > < span class = "n" > directory< / span > < span class = "p" > ,< / span > < span class = "n" > moved_files< / span > < span class = "p" > ))< / 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 = "n" > NZBGET_POSTPROCESS_SUCCESS< / 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 >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "mf" > 1.< / span > < span class = "w" > < / span > < span class = "n" > Copy< / span > < span class = "w" > < / span > < span class = "n" > script< / span > < span class = "w" > < / span > < span class = "k" > to< / span > < span class = "w" > < / span > < span class = "n" > NZBGet< / span > < span class = "s1" > ' s script folder< / span >
< span class = "s1" > 1. Run: `sudo chmod +x replace_for.py`< / span >
< span class = "s1" > 1. In NZBGet go to `Settings` => `Extension Scripts`< / span >
< span class = "s1" > 1. Enable `replace_for.py` in the `Extensions` setting.< / span >
< / code > < / pre > < / div >
< / details >
< details class = "example" >
< summary > Script< / summary >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "ch" > #!/usr/bin/env python3< / span >
< span class = "c1" > #< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "c1" > ### NZBGET POST-PROCESSING SCRIPT ###< / span >
< span class = "c1" > # Replace underscore with dot.< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # Author: miker< / span >
< span class = "c1" > #< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # Copy script to NZBGet' s script folder.< / span >
< span class = "c1" > # Run sudo chmod +x replace_for.py< / span >
< span class = "c1" > #< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # NOTE: This script requires Python to be installed on your system.< / span >
< span class = "c1" > ### NZBGET POST-PROCESSING SCRIPT ###< / span >
< span class = "c1" > ##############################################################################< / span >
< span class = "kn" > from< / span > < span class = "nn" > __future__< / span > < span class = "kn" > import< / span > < span class = "n" > print_function< / span >
< span class = "kn" > import< / span > < span class = "nn" > os< / span > < span class = "o" > ,< / span > < span class = "nn" > re< / span > < span class = "o" > ,< / span > < span class = "nn" > sys< / span >
< span class = "c1" > # Exit codes used by NZBGet< / span >
< span class = "n" > POSTPROCESS_SUCCESS< / span > < span class = "o" > =< / span > < span class = "mi" > 93< / span >
< span class = "n" > POSTPROCESS_ERROR< / span > < span class = "o" > =< / span > < span class = "mi" > 94< / span >
< span class = "n" > POSTPROCESS_SKIP< / span > < span class = "o" > =< / span > < span class = "mi" > 95< / span >
< span class = "n" > directory< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > environ< / span > < span class = "p" > [< / span > < span class = "s2" > " NZBPP_DIRECTORY" < / span > < span class = "p" > ]< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " Directory used is: " < / span > < span class = "p" > ,< / span > < span class = "n" > directory< / span > < span class = "p" > )< / span >
< span class = "k" > for< / span > < span class = "n" > path< / span > < span class = "p" > ,< / span > < span class = "n" > currentDirectory< / span > < span class = "p" > ,< / span > < span class = "n" > files< / span > < span class = "ow" > in< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > walk< / span > < span class = "p" > (< / span > < span class = "n" > directory< / span > < span class = "p" > ):< / span >
< span class = "k" > for< / span > < span class = "n" > file< / span > < span class = "ow" > in< / span > < span class = "n" > files< / span > < span class = "p" > :< / span >
< span class = "k" > if< / span > < span class = "n" > file< / 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 = "o" > -< / span > < span class = "mi" > 1< / span > < span class = "p" > :< / span >
< span class = "n" > dst< / span > < span class = "o" > =< / span > < span class = "n" > file< / span > < span class = "o" > .< / span > < span class = "n" > replace< / span > < span class = "p" > (< / span > < span class = "s2" > " _" < / span > < span class = "p" > ,< / span > < span class = "s2" > " ." < / 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" > path< / span > < span class = "p" > ,< / span > < span class = "n" > file< / 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" > path< / 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 = "s2" > " Result: " < / span > < span class = "p" > ,< / span > < span class = "n" > file< / 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 = "n" > sys< / span > < span class = "o" > .< / span > < span class = "n" > exit< / span > < span class = "p" > (< / span > < span class = "n" > POSTPROCESS_SUCCESS< / span > < span class = "p" > )< / span >
< / code > < / pre > < / div >
< / details >
< h2 id = "wtfnzb-renamer" > WtFnZb-Renamer< a class = "headerlink" href = "#wtfnzb-renamer" title = "Permanent link" > < / a > < / h2 >
< details class = "info" >
< summary > Renames hashed media files to match the source NZB< / summary >
< ul >
< li > Title: < code > WtFnZb-Renamer.py< / code > < / li >
< li > Author(s): WtFnZb< / li >
< li > URL: ??< / li >
< / ul >
< p > NZBGET SCAN SCRIPT< / p >
< p > Extract filenames from subjects containing [PRiVATE]-[WtFnZb]< / p >
< p > This extensions extracts obfuscated filenames from .nzb files< / p >
< / details >
< details class = "example" >
< summary > Script< / summary >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "ch" > #!/usr/bin/env python3< / span >
< span class = "c1" > ### NZBGET SCAN SCRIPT< / span >
< span class = "c1" > # Extract filenames from subjects containing [PRiVATE]-[WtFnZb]< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # This extensions extracts obfuscated filenames from .nzb files< / span >
< span class = "c1" > # created by WtFnZb.< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # Supported subject formats:< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # - [PRiVATE]-[WtFnZb]-[filename]-[1/5] - " " yEnc 0 (1/1)" < / span >
< span class = "c1" > #< / span >
< span class = "c1" > # - [PRiVATE]-[WtFnZb]-[5]-[1/filename] - " " yEnc< / span >
< span class = "c1" > #< / span >
< span class = "c1" > #< / span >
< span class = "c1" > # NOTE: Requires Python and lxml (sudo apt install python3-lxml python-lxml)< / span >
< span class = "c1" > #< / span >
< span class = "c1" > ### NZBGET SCAN SCRIPT< / 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" > re< / span >
< span class = "c1" > # Exit codes used by NZBGet< / span >
< span class = "n" > POSTPROCESS_SUCCESS< / span > < span class = "o" > =< / span > < span class = "mi" > 93< / span >
< span class = "n" > POSTPROCESS_NONE< / span > < span class = "o" > =< / span > < span class = "mi" > 95< / span >
< span class = "n" > POSTPROCESS_ERROR< / span > < span class = "o" > =< / span > < span class = "mi" > 94< / span >
< span class = "k" > try< / span > < span class = "p" > :< / span >
< span class = "kn" > from< / span > < span class = "nn" > lxml< / span > < span class = "kn" > import< / span > < span class = "n" > etree< / span >
< span class = "k" > except< / span > < span class = "ne" > ImportError< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s1" > ' [ERROR] Python lxml required. Please install with " sudo apt install python-lxml" or " pip install lxml" .' < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "n" > patterns< / span > < span class = "o" > =< / span > < span class = "p" > (< / span >
< span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > compile< / span > < span class = "p" > (< / span >
< span class = "sa" > r< / span > < span class = "s2" > " ^(?P< prefix> .*\[PRiVATE\]-\[WtFnZb\]-)" < / span >
< span class = "sa" > r< / span > < span class = "s2" > " \[(?P< total> \d+)\]-\[(?P< segment> \d+)\/(?P< filename> .{3,}?)\]" < / span >
< span class = "sa" > r< / span > < span class = "s1" > ' \s+-\s+" " \s+yEnc\s+' < / span > < span class = "p" > ,< / span >
< span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > MULTILINE< / span > < span class = "o" > |< / span > < span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > UNICODE< / span > < span class = "p" > ,< / span >
< span class = "p" > ),< / span >
< span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > compile< / span > < span class = "p" > (< / span >
< span class = "sa" > r< / span > < span class = "s2" > " ^(?P< prefix> .*\[PRiVATE\]-\[WtFnZb\]-)" < / span >
< span class = "sa" > r< / span > < span class = "s2" > " \[(?P< filename> .{3,}?)\]-\[(?P< segment> \d+)/(?P< total> \d+)\]" < / span >
< span class = "sa" > r< / span > < span class = "s1" > ' \s+-\s+" " \s+yEnc\s+' < / span > < span class = "p" > ,< / span >
< span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > MULTILINE< / span > < span class = "o" > |< / span > < span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > UNICODE< / span > < span class = "p" > ,< / span >
< span class = "p" > ),< / span >
< span class = "p" > )< / span >
< span class = "n" > nzb_dir< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > getenv< / span > < span class = "p" > (< / span > < span class = "s2" > " NZBNP_DIRECTORY" < / span > < span class = "p" > )< / span >
< span class = "n" > nzb_filename< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > getenv< / span > < span class = "p" > (< / span > < span class = "s2" > " NZBNP_FILENAME" < / span > < span class = "p" > )< / span >
< span class = "n" > nzb_name< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > getenv< / span > < span class = "p" > (< / span > < span class = "s2" > " NZBNP_NZBNAME" < / span > < span class = "p" > )< / span >
< span class = "n" > nzb_file_naming< / span > < span class = "o" > =< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > getenv< / span > < span class = "p" > (< / span > < span class = "s2" > " NZBOP_FILENAMING" < / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "n" > nzb_dir< / span > < span class = "ow" > is< / span > < span class = "kc" > None< / span > < span class = "ow" > or< / span > < span class = "n" > nzb_filename< / span > < span class = "ow" > is< / span > < span class = "kc" > None< / span > < span class = "ow" > or< / span > < span class = "n" > nzb_name< / span > < span class = "ow" > is< / span > < span class = "kc" > None< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " Please run as NZBGet plugin" < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "n" > nzb_file_naming< / span > < span class = "ow" > is< / span > < span class = "ow" > not< / span > < span class = "kc" > None< / span > < span class = "ow" > and< / span > < span class = "n" > nzb_file_naming< / span > < span class = "o" > .< / span > < span class = "n" > lower< / span > < span class = "p" > ()< / span > < span class = "o" > !=< / span > < span class = "s2" > " nzb" < / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span >
< span class = "s2" > " [ERROR] NZBGet setting FileNaming (under Download Queue) " < / span >
< span class = "s1" > ' must be set to " Nzb" for this extension to work correctly, exiting.' < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > exists< / span > < span class = "p" > (< / span > < span class = "n" > nzb_dir< / span > < span class = "p" > ):< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [ERROR] NZB directory doesn' t exist, exiting" < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > nzb_filename< / span > < span class = "o" > .< / span > < span class = "n" > lower< / span > < span class = "p" > ()< / span > < span class = "o" > .< / span > < span class = "n" > endswith< / span > < span class = "p" > (< / span > < span class = "s2" > " .nzb" < / span > < span class = "p" > ):< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [ERROR] < / span > < span class = "si" > {}< / span > < span class = "s2" > is not a .nzb file." < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > nzb_filename< / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "n" > nzb< / span > < span class = "o" > =< / 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" > nzb_dir< / span > < span class = "p" > ,< / span > < span class = "n" > nzb_filename< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > exists< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "p" > ):< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [ERROR] < / span > < span class = "si" > {nzb}< / span > < span class = "s2" > doesn' t exist, exiting" < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "o" > =< / span > < span class = "n" > nzb< / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "k" > with< / span > < span class = "nb" > open< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "p" > ,< / span > < span class = "n" > mode< / span > < span class = "o" > =< / span > < span class = "s2" > " rb" < / span > < span class = "p" > )< / span > < span class = "k" > as< / span > < span class = "n" > infile< / span > < span class = "p" > :< / span >
< span class = "n" > tree< / span > < span class = "o" > =< / span > < span class = "n" > etree< / span > < span class = "o" > .< / span > < span class = "n" > parse< / span > < span class = "p" > (< / span > < span class = "n" > infile< / span > < span class = "p" > )< / span >
< span class = "n" > changed< / span > < span class = "o" > =< / span > < span class = "kc" > False< / span >
< span class = "n" > file_count< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span >
< span class = "n" > totals< / span > < span class = "o" > =< / span > < span class = "nb" > set< / span > < span class = "p" > ()< / span >
< span class = "n" > filenames< / span > < span class = "o" > =< / span > < span class = "nb" > set< / span > < span class = "p" > ()< / span >
< span class = "k" > for< / span > < span class = "n" > f< / span > < span class = "ow" > in< / span > < span class = "n" > tree< / span > < span class = "o" > .< / span > < span class = "n" > getiterator< / span > < span class = "p" > (< / span > < span class = "s2" > " {http://www.newzbin.com/DTD/2003/nzb}file" < / span > < span class = "p" > ):< / span >
< span class = "n" > subject< / span > < span class = "o" > =< / span > < span class = "n" > f< / span > < span class = "o" > .< / span > < span class = "n" > get< / span > < span class = "p" > (< / span > < span class = "s2" > " subject" < / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "n" > subject< / span > < span class = "ow" > is< / span > < span class = "kc" > None< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [DETAIL] No subject in < file> , skipping" < / span > < span class = "p" > )< / span >
< span class = "k" > continue< / span >
< span class = "n" > file_count< / span > < span class = "o" > +=< / span > < span class = "mi" > 1< / span >
< span class = "n" > result< / span > < span class = "o" > =< / span > < span class = "p" > [< / span > < span class = "n" > re< / span > < span class = "o" > .< / span > < span class = "n" > match< / span > < span class = "p" > (< / span > < span class = "n" > pattern< / span > < span class = "p" > ,< / span > < span class = "n" > subject< / span > < span class = "p" > )< / span > < span class = "k" > for< / span > < span class = "n" > pattern< / span > < span class = "ow" > in< / span > < span class = "n" > patterns< / span > < span class = "p" > ]< / span >
< span class = "n" > matched< / span > < span class = "o" > =< / span > < span class = "p" > [< / span > < span class = "n" > m< / span > < span class = "k" > for< / span > < span class = "n" > m< / span > < span class = "ow" > in< / span > < span class = "n" > result< / span > < span class = "k" > if< / span > < span class = "n" > m< / span > < span class = "ow" > is< / span > < span class = "ow" > not< / span > < span class = "kc" > None< / span > < span class = "p" > ]< / span >
< span class = "k" > if< / span > < span class = "nb" > len< / span > < span class = "p" > (< / span > < span class = "n" > matched< / span > < span class = "p" > )< / span > < span class = "o" > ==< / span > < span class = "mi" > 0< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [INFO] No pattern matching subject, exiting." < / 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 = "n" > POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "k" > elif< / span > < span class = "nb" > len< / span > < span class = "p" > (< / span > < span class = "n" > matched< / span > < span class = "p" > )< / span > < span class = "o" > > < / span > < span class = "mi" > 1< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [ERROR] Multiple patterns matched, exiting." < / 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 = "n" > POSTPROCESS_ERROR< / span > < span class = "p" > )< / span >
< span class = "k" > else< / span > < span class = "p" > :< / span >
< span class = "n" > match< / span > < span class = "o" > =< / span > < span class = "n" > matched< / span > < span class = "p" > [< / span > < span class = "mi" > 0< / span > < span class = "p" > ]< / span > < span class = "o" > .< / span > < span class = "n" > groupdict< / span > < span class = "p" > ()< / span >
< span class = "k" > if< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " filename" < / span > < span class = "p" > ]< / span > < span class = "o" > .< / span > < span class = "n" > lower< / span > < span class = "p" > ()< / span > < span class = "o" > .< / span > < span class = "n" > endswith< / span > < span class = "p" > (< / span > < span class = "s2" > " .par2" < / span > < span class = "p" > ):< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [INFO] par2 exists, exiting" < / 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 = "n" > POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "nb" > int< / span > < span class = "p" > (< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " segment" < / span > < span class = "p" > ])< / span > < span class = "o" > > < / span > < span class = "nb" > int< / span > < span class = "p" > (< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " total" < / span > < span class = "p" > ]):< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [DETAIL] Segment index is greater then total, skipping" < / span > < span class = "p" > )< / span >
< span class = "k" > continue< / span >
< span class = "c1" > # NZBGet subject parsing changes when duplicate filenames are present< / span >
< span class = "c1" > # prefix duplicates to avoid that< / span >
< span class = "k" > if< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " filename" < / span > < span class = "p" > ]< / span > < span class = "ow" > in< / span > < span class = "n" > filenames< / span > < span class = "p" > :< / span >
< span class = "k" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " filename" < / span > < span class = "p" > ]< / span > < span class = "o" > =< / span > < span class = "s2" > " < / span > < span class = "si" > {}< / span > < span class = "s2" > .< / span > < span class = "si" > {}< / span > < span class = "s2" > " < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > file_count< / span > < span class = "p" > ,< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " filename" < / span > < span class = "p" > ])< / span >
< span class = "n" > filenames< / span > < span class = "o" > .< / span > < span class = "n" > add< / span > < span class = "p" > (< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " filename" < / span > < span class = "p" > ])< / span >
< span class = "n" > s< / span > < span class = "o" > =< / span > < span class = "s1" > ' WtFnZb " < / span > < span class = "si" > {filename}< / span > < span class = "s1" > " yEnc (< / span > < span class = "si" > {segment}< / span > < span class = "s1" > /< / span > < span class = "si" > {total}< / span > < span class = "s1" > )' < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span >
< span class = "n" > filename< / span > < span class = "o" > =< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " filename" < / span > < span class = "p" > ],< / span > < span class = "n" > segment< / span > < span class = "o" > =< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " segment" < / span > < span class = "p" > ],< / span > < span class = "n" > total< / span > < span class = "o" > =< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " total" < / span > < span class = "p" > ]< / span >
< span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [INFO] New subject < / span > < span class = "si" > {subject}< / span > < span class = "s2" > " < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > subject< / span > < span class = "o" > =< / span > < span class = "n" > s< / span > < span class = "o" > .< / span > < span class = "n" > encode< / span > < span class = "p" > (< / span > < span class = "s2" > " ascii" < / span > < span class = "p" > ,< / span > < span class = "s2" > " ignore" < / span > < span class = "p" > )))< / span >
< span class = "n" > f< / span > < span class = "o" > .< / span > < span class = "n" > set< / span > < span class = "p" > (< / span > < span class = "s2" > " subject" < / span > < span class = "p" > ,< / span > < span class = "n" > s< / span > < span class = "p" > )< / span >
< span class = "n" > changed< / span > < span class = "o" > =< / span > < span class = "kc" > True< / span >
< span class = "n" > totals< / span > < span class = "o" > .< / span > < span class = "n" > add< / span > < span class = "p" > (< / span > < span class = "nb" > int< / span > < span class = "p" > (< / span > < span class = "n" > match< / span > < span class = "p" > [< / span > < span class = "s2" > " total" < / span > < span class = "p" > ]))< / span >
< span class = "k" > if< / span > < span class = "ow" > not< / span > < span class = "n" > changed< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [WARNING] No subject changed, exiting." < / 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 = "n" > POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "nb" > len< / span > < span class = "p" > (< / span > < span class = "n" > totals< / span > < span class = "p" > )< / span > < span class = "o" > !=< / span > < span class = "mi" > 1< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [WARNING] Mixed values for number of total segments, exiting." < / 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 = "n" > POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "k" > if< / span > < span class = "n" > totals< / span > < span class = "o" > .< / span > < span class = "n" > pop< / span > < span class = "p" > ()< / span > < span class = "o" > !=< / span > < span class = "n" > file_count< / span > < span class = "p" > :< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [WARNING] Listed segment count does not match < file> count, exiting." < / 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 = "n" > POSTPROCESS_NONE< / span > < span class = "p" > )< / span >
< span class = "n" > org< / span > < span class = "o" > =< / span > < span class = "s2" > " < / span > < span class = "si" > {}< / span > < span class = "s2" > .wtfnzb.original.processed" < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "p" > )< / span >
< span class = "n" > exists_counter< / span > < span class = "o" > =< / span > < span class = "mi" > 0< / span >
< span class = "k" > while< / span > < span class = "n" > os< / span > < span class = "o" > .< / span > < span class = "n" > path< / span > < span class = "o" > .< / span > < span class = "n" > exists< / span > < span class = "p" > (< / span > < span class = "n" > org< / span > < span class = "p" > ):< / span >
< span class = "n" > exists_counter< / span > < span class = "o" > +=< / span > < span class = "mi" > 1< / span >
< span class = "n" > org< / span > < span class = "o" > =< / span > < span class = "s2" > " < / span > < span class = "si" > {}< / span > < span class = "s2" > .< / span > < span class = "si" > {}< / span > < span class = "s2" > .wtfnzb.original.processed" < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "p" > ,< / span > < span class = "n" > exists_counter< / span > < span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [INFO] Preserving original nzb as < / span > < span class = "si" > {}< / span > < span class = "s2" > " < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > org< / 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" > nzb< / span > < span class = "p" > ,< / span > < span class = "n" > org< / span > < span class = "p" > )< / span >
< span class = "nb" > print< / span > < span class = "p" > (< / span > < span class = "s2" > " [INFO] Writing < / span > < span class = "si" > {}< / span > < span class = "s2" > " < / span > < span class = "o" > .< / span > < span class = "n" > format< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "p" > ))< / span >
< span class = "k" > with< / span > < span class = "nb" > open< / span > < span class = "p" > (< / span > < span class = "n" > nzb< / span > < span class = "p" > ,< / span > < span class = "n" > mode< / span > < span class = "o" > =< / span > < span class = "s2" > " wb" < / span > < span class = "p" > )< / span > < span class = "k" > as< / span > < span class = "n" > outfile< / span > < span class = "p" > :< / span >
< span class = "n" > outfile< / span > < span class = "o" > .< / span > < span class = "n" > write< / span > < span class = "p" > (< / span >
< span class = "n" > etree< / span > < span class = "o" > .< / span > < span class = "n" > tostring< / span > < span class = "p" > (< / span >
< span class = "n" > tree< / span > < span class = "p" > ,< / span >
< span class = "n" > xml_declaration< / span > < span class = "o" > =< / span > < span class = "kc" > True< / span > < span class = "p" > ,< / span >
< span class = "n" > encoding< / span > < span class = "o" > =< / span > < span class = "n" > tree< / span > < span class = "o" > .< / span > < span class = "n" > docinfo< / span > < span class = "o" > .< / span > < span class = "n" > encoding< / span > < span class = "p" > ,< / span >
< span class = "n" > doctype< / span > < span class = "o" > =< / span > < span class = "n" > tree< / span > < span class = "o" > .< / span > < span class = "n" > docinfo< / span > < span class = "o" > .< / span > < span class = "n" > doctype< / span > < span class = "p" > ,< / span >
< span class = "p" > )< / 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 = "n" > POSTPROCESS_SUCCESS< / span > < span class = "p" > )< / span >
< / code > < / pre > < / div >
< / details >
< div class = "admonition tip" >
< p class = "admonition-title" > Tip< / p >
< p > This script doesn't always work and is often needed if you use a certain indexer.< / p >
< p > It might be better to use the following Sonarr Regex in your release profile< / p >
< p > < a href = "/Sonarr/Sonarr-Release-Profile-RegEx/#su-season-pack-issue" > su season pack issue< / a > < / p >
< / div >
< aside class = "md-source-file" >
< span class = "md-source-file__fact" >
< span class = "md-icon" title = "Last update" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z" / > < / svg >
< / span >
< span class = "git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime" > September 9, 2024 20:04:42< / span >
< / span >
< span class = "md-source-file__fact" >
< span class = "md-icon" title = "Created" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M14.47 15.08 11 13V7h1.5v5.25l3.08 1.83c-.41.28-.79.62-1.11 1m-1.39 4.84c-.36.05-.71.08-1.08.08-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8c0 .37-.03.72-.08 1.08.69.1 1.33.32 1.92.64.1-.56.16-1.13.16-1.72 0-5.5-4.5-10-10-10S2 6.5 2 12s4.47 10 10 10c.59 0 1.16-.06 1.72-.16-.32-.59-.54-1.23-.64-1.92M18 15v3h-3v2h3v3h2v-3h3v-2h-3v-3z" / > < / svg >
< / span >
< span class = "git-revision-date-localized-plugin git-revision-date-localized-plugin-datetime" > October 19, 2019 16:37:14< / span >
< / span >
< / aside >
< footer class = "sponsorship" >
< hr / >
< a href = "https://github.com/sponsors/TRaSH-" title = "Buy me a Coffee"
>< img
src="/img/buy-me-a-coffee.png"
alt="Buy me a coffee"
width="137"
height="39"
/>
< / a >
< hr / >
< / footer >
< / article >
< / div >
< script > var target = document . getElementById ( location . hash . slice ( 1 ) ) ; target && target . name && ( target . checked = target . name . startsWith ( "__tabbed_" ) ) < / script >
< / div >
< button type = "button" class = "md-top md-icon" data-md-component = "top" hidden >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 24 24" > < path d = "M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z" / > < / svg >
Back to top
< / button >
< / 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 © 2024 TRaSH
< / div >
Made with
< a href = "https://squidfunk.github.io/mkdocs-material/" target = "_blank" rel = "noopener" >
Material for MkDocs
< / a >
< / div >
< div class = "md-social" >
< a href = "https://trash-guides.info/discord" target = "_blank" rel = "noopener" title = "trash-guides.info" class = "md-social__link" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 640 512" > <!-- ! Font Awesome Free 6.6.0 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 2024 Fonticons, Inc. --> < path d = "M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.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.241m195.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.241" / > < / svg >
< / a >
< a href = "https://github.com/TRaSH-Guides/Guides" target = "_blank" rel = "noopener" title = "github.com" class = "md-social__link" >
< svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 448 512" > <!-- ! Font Awesome Free 6.6.0 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 2024 Fonticons, Inc. --> < path d = "M448 96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64zM265.8 407.7c0-1.8 0-6 .1-11.6.1-11.4.1-28.8.1-43.7 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.6s-28.4 1.9-41.6 5.6c0 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 9 .1 21.7.1 30.6 0 4.8.1 8.6.1 10 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.3-8.4 1.5-11.5-3.7-11.5-8m-90.5-54.8c-.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 3-1.9.4-3.7-.4-3.9-1.7m-9.1 3.2c-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.4 0 1.3-1.5 2.4-3.5 2.4m-14.3-2.2c-1.9-.4-3.2-1.9-2.8-3.2s2.4-1.9 4.1-1.5c2 .6 3.3 2.1 2.8 3.4-.4 1.3-2.4 1.9-4.1 1.3m-12.5-7.3c-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.1-.9 1.1-2.8.9-4.3-.6m-8.5-10c-1.1-1.5-1.1-3.2 0-3.9 1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1-.9.6-2.6 0-3.7-1.5m-6.3-8.8c-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.5-.9.9-2.4.4-3.5-.6m-6-6.4c-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.6-.4.9-1.7 1.1-2.8.4" / > < / 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" , "content.code.copy" , "content.action.edit" , "content.action.view" , "content.tooltips" ] , "search" : "../../../assets/javascripts/workers/search.6ce7567c.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.525ec568.min.js" > < / script >
< script id = "init-glightbox" > c o n s t l i g h t b o x = G L i g h t b o x ( { " t o u c h N a v i g a t i o n " : t r u e , " l o o p " : f a l s e , " z o o m a b l e " : t r u e , " d r a g g a b l e " : t r u e , " o p e n E f f e c t " : " z o o m " , " c l o s e E f f e c t " : " z o o m " , " s l i d e E f f e c t " : " s l i d e " } ) ;
document$.subscribe(() => { lightbox.reload() });
< / script > < / body >
< / html >