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.
For this I used the [Sonarr Recommended naming scheme](/Sonarr/V3/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.
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 into the same group as WEB-DL and WEBRip 1080p so that it will download correctly and not upgrade past HDTV-1080P if Preferred Words does not allow it.
Check mark `Include Preferred when Renaming` where applicable and add `{Preferred Words}` to your renaming scheme else you could get a download loop issues!!!
DO NOT check mark `Include Preferred when Renaming` on this release profile. This one is separate in case of history loss and there are edge cases of where groups do not have dual-audio in their naming scheme. This fixes that noting down `EN+JA` or `JA+EN` as a dual-audio release if you have to re-import.
Add this to your Preferred with a score of [1000]/[-1000] if you want the uncensored version of anime. If you would like it to be priority then set to 1000. If you do not want uncensored set it to -1000. If you don't care either way just leave it out.
Check mark `Include Preferred when Renaming` We are adding this third release profile so that when doing naming you will get `dual-audio` in your `Preferred Words`.
DO NOT Check mark `Include Preferred when Renaming`
#### Must Not Contain
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.
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.