This Guide is Created and Maintained by [Visorask/Visorak](https://github.com/Visorask)
It's recommended to run 2 Sonarr's 1 for Anime and 1 for normal tv shows, or you can make use of tags.
Being that release profiles are global without the use of a tag.
## Dual-Audio Regex
Having tested most of these settings, they work pretty well but Anime is a fickle beast to toy with so be warned.
---
## Anime Delete
??? tip "If you have issues with extra files being download like NCED or NCOP"
If you have issues with sonarr picking up a bunch of:
- NCED
- NCOP
- Music Videos
- OP's
Then this script (linux based only) will delete these files and get rid of them and you don't have to worry about them cluttering up your Auto or Manual import process.
```bash
#!/usr/bin/env bash
# Set the following location to your completed download location for Anime.
This script will be called through a custom connection in sonarr.
1. Copy the contents of the script into whatever filepath sonarr has access to (`/config/app/` or `/appdata/sonarr/scripts`)
1. Edit the `location="/your/download/path/here"` and make sure it's in quotes.
1. Then save it and chmod +x the script.
1. In Sonarr go to `Settings` => `Connect` => Click on the `+` Symbol => and select `Custom Script`
1. Change Name to whatever you like.
1. Select `On Grab` and `On Import`.
1. Click the Folder icon or type in the path to the script you chose earlier.
![!rpa-customscript](images/rpa-customscript.png)
Now when you download or import any files the script will run and clear out those files that you most likely won't use and if you want them well this script isn't for you.
---
## Media Management
!!! note
There a few settings which make life a lot easier when tracking down and keeping certain information for your Anime and with tweaks to make it work better with [HamaAgent](https://github.com/ZeroQI/Hama.bundle){:target="_blank" rel="noopener noreferrer"} for plex.
### Suggested naming scheme
For this I used the [Sonarr Recommended naming scheme](/Sonarr/Sonarr-recommended-naming-scheme/#anime-episode-format){:target="_blank" rel="noopener noreferrer"} for Sonarr with only a small change for a formatting error to be fixed and the `Series Folder Format` for easier matching.
#### Anime Episode Format
Has all necessary information and a little extra if you needed to rebuild.
`The Series Title! (2010) - S01E01 - 001 - Episode Title 1 [AMZN WEBDL-1080p v2][HDR][10bit][x264][DTS 5.1][FLAC][JA]-RlsGrp`
Multi Episode:
`The Series Title! (2010) - S01E01-E02-E03 - 001-002-003 - Episode Title [AMZN WEBDL-1080p v2][HDR][10bit][x264][DTS 5.1][FLAC][JA]-RlsGrp`
#### Series Folder Format
Adding year back in with tvdb id allows matching to be correct. Thanks salty.
```bash
{Series TitleTheYear} [tvdb-{TvdbId}]
```
RESULT:
`The Series Title! (2010) [tvdb-12345]`
#### Season Folder Format
The only one real option to use in my opinion.
```bash
Season {season:00}
```
RESULT:
`Season 01`
#### Multi-Episode Style
```bash
Scene
```
RESULTS:
![results](images/results.png)
??? success "Example"
![!Example image of above](images/rpa-mediamanage.png)
---
## Quality Profile
We need to add `HDTV-1080p` and `Bluray-1080p` into the same group as `WEBDL-1080p` and `WEBRip-1080p` so that it will download correctly and not upgrade past HDTV-1080P if Preferred Words does not allow it.
We need to add the Anime Categories to our indexers otherwise this all won't work very well.
??? success "Example"
1. We need to open `Settings -> Indexers`
1. Select the Indexer(s) you would like to use for `Anime`
1. Select the dropdown for `Anime Categories`.
![!rpa-indexer-1](images/rpa-indexer-1.png)
1. Select the `Anime` category.
![!rpa-indexer-2](images/rpa-indexer-2.png)
1. Click outside the pop-up modal but inside the `Add Indexer` modal.
![!rpa-indexer-3](images/rpa-indexer-3.png)
---
!!! note
Check mark `Include Preferred when Renaming` where applicable and add `{Preferred Words}` to your renaming scheme else you could get a download loop issues!!!
## Release Profiles
!!! note
We're going to make use of **2** separate release profiles.
Add this to your Preferred with a score of **[500]**
```bash
/(multi[ ._-]?audio)/i
```
#### Dual-Audio
Add this to your Preferred with a score of **[0]**. This is for renames only and why it is at **0**. It is also added in the second profile. This one is to ensure that the preferred words get added.
```bash
/(dual[ ._-]?audio)/i
```
#### Optional (uncut|unrated|uncensored)
Add this to your Preferred with a score of **[100]/[-10000]**
If you would like it to be priority then set to **100**. If you do not want uncensored set it to **-10000**. If you don't care either way just leave it out. The reasoning behind only **100** is so that it doesn't trump other release further up in the chain, this way it will trump maybe a couple release but not more. And **-10000** to hopefully put it at the bottom of any tier list if you don't want it.
The reason most of these are added is due to their shitty quality or just in general are not as good as other stuff that is out there. This can be tweaked as needed. Let me know if you run into any issues here. You should be able to just copy paste these in one go. If there is a reason something shouldn't be here let me know and your logic and I will be open to adjusting.
!!! important
If you would like `dub` releases then remove the last 2 lines and do not add them.
2 lines in one grouping is just there for readability purposes but achieves the same result and score.
---
Add this to your Preferred with a score of **[501]**
!!! note
This is set to **501** so that it may jump 1 tier if need be but not more.
```bash
/dual[ ._-]?audio|EN\+JA|JA\+EN/i
```
---
!!! important
These next few are optional but they are here to move releases up over lower tiers of `1080/720p` or `WEB-DL/Blu-Ray`. Will add another note like this to end the optional section.
---
Add this to your Preferred with a score of **[100]**
!!! note
We are adding this as **100** so that any unknown `Blu-Ray` can jump tiers inside the Subs categories but not interfere with any tiers above.
Add this to your Preferred with a score of **[25]**
FanSubs 3rd Tier
```bash
/(AkihitoSubs|\bASW\b|Commie)/i
```
---
!!! note
These are extra parameters that can help and are not needed but are nice to have. They are set low mainly to supercede themselves and not interfere with other releases.
Add this to your Preferred with a score of **[1]**
Adds Hi10|Hi10p into a match. Prefers this over some erroneous matches.
```bash
/(10.?bit|hi10p)/i
```
---
Add this to your Preferred with a score of **[1]**
Adds version due to anime groups sometimes fixing issues with their releases.
```bash
/\d(v2)\b/i
```
---
Add this to your Preferred with a score of **[2]**
```bash
/\d(v3)\b/i
```
---
Add this to your Preferred with a score of **[3]**
```bash
/\d(v4)\b/i
```
---
!!! note
This section can be controversial but most of these releases are micro/mini encodes or crappy quality. I personally add them into the do not want section but I will leave them here with negative values so you can still grab them if all else fails.
Add this to your Preferred with a score of **[-10000]**
Sub-Par Releases 1st Tier (Re-encoded to crap or really small filesizes) (Little less worse than the rest)
```bash
/(\[Judas\]|-Judas|\[Cleo\]|-Cleo)/i
```
```bash
/(AnimeRG|bonkai77|URANiME)/i
```
---
Add this to your Preferred with a score of **[-15000]**
Sub-Par Releases 2nd Tier (Re-encoded to crap or really small filesizes) (Seperated onto separate lines for readability)