You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/docs/Sonarr/V3/Sonarr-Release-Profile-RegE...

646 lines
15 KiB

# Release Profile RegEx (Anime)
!!! note
4 years ago
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.
# Usually one of the following paths:
# Dockers => /data/{usenet|torrents}/anime
# Cloudbox => /mnt/local/downloads/nzbs/nzbget/completed/sonarranime
location="/your/download/path/here"
find $location -type f \( -iname "*op[0-9]*" -o -iname "*nced*" -o -iname "*ncop*" -o -iname "*music video*" \) -exec rm -rf {} \;
```
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.
4 years ago
---
## 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/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.
#### Anime Episode Format
Has all necessary information and a little extra if you needed to rebuild.
```bash
{Series TitleYear} - S{season:00}E{episode:00} - {absolute:000} - {Episode CleanTitle} [{Preferred Words }{Quality Full}]{[MediaInfo VideoDynamicRange]}[{MediaInfo VideoBitDepth}bit]{[MediaInfo VideoCodec]}[{Mediainfo AudioCodec} { Mediainfo AudioChannels}]{MediaInfo AudioLanguages}{-Release Group}
```
??? summary "RESULTS:"
Single Episode:
`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)
4 years ago
??? 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.
![!rpa-quality-profile-group](images/rpa-quality-profile-group.png)
---
4 years ago
## Indexers
4 years ago
We need to add the Anime Categories to our indexers otherwise this all won't work very well.
4 years ago
??? success "Example"
4 years ago
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)
4 years ago
---
4 years ago
!!! note
4 years ago
Check mark `Include Preferred when Renaming` where applicable and add `{Preferred Words}` to your renaming scheme else you could get a download loop issues!!!
4 years ago
4 years ago
## Release Profiles
4 years ago
!!! note
We're going to make use of **2** separate release profiles.
4 years ago
### First Release Profile
4 years ago
!!! important
4 years ago
**DO** Check mark `Include Preferred when Renaming` on this release profile.
![!rpa-release-sources-1](images/rpa-release-sources-1.png)
4 years ago
#### Multi-Audio
4 years ago
Add this to your Preferred with a score of **[500]**
```bash
/(multi[ ._-]?audio)/i
```
4 years ago
#### Dual-Audio
4 years ago
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
4 years ago
/(dual[ ._-]?audio)/i
```
4 years ago
#### Optional (uncut|unrated|uncensored)
4 years ago
4 years ago
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.
4 years ago
```bash
4 years ago
/(uncut|unrated|uncensored)/i
4 years ago
```
4 years ago
!!! note
When done it should look something like this:
![!rpa-release-profile-1](images/rpa-release-profile-1.png)
---
4 years ago
### Second Release Profile
!!! warning
4 years ago
**DO NOT** Check mark `Include Preferred when Renaming`
![!rpa-release-sources-2](images/rpa-release-sources-2.png)
#### Must Not Contain
4 years ago
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.
4 years ago
!!! important
4 years ago
If you would like `dub` releases then remove the last 2 lines and do not add them.
```bash
4 years ago
/(\[EMBER\]|-EMBER\b)/i,
/(CuaP|PnPSubs|ICEBLUE|SLAX|U3-Web)/i,
4 years ago
/(Raws-Maji|\bKRP\b|M@nI|Kanjouteki|PuyaSubs)/i,
/\b(Beatrice|ohys|Kawaiika|neko)\b(?=[ ._-]?(raws)\b)/i,
4 years ago
/\b(LowPower|Scryous)\b(?=[ ._-]?(raws)\b)/i,
4 years ago
/\b(NS|AREY|BDMV|BDVD|BJX|DKB|DP|TnF)\b/i,
/(Amb3r|DsunS|ExREN|\$tore-Chill)/i,
/(\[Hatsuyuki\]|-Hatsuyuki\b|\[Hitoku\]|-Hitoki\b)/i,
/(\[Foxtrot\]|-Foxtrot\b|HollowRoxas|\bMGD\b)/i,
/(JacobSwaggedUp|KEKMASTERS|\[Mites\]|-Mites\b)/i,
/(neoHEVC|Pantsu|\[Pao\]|-Pao\b|Plex Friendly)/i,
/(Rando235|RandomRemux|Reaktor|RightShiftBy2)/i,
/(\bSHFS\b|StrayGods|\bUQW\b|Yabai_Desu_Ne)/i,
/(YakuboEncodes)/i,
/((funi|eng(lish)?)dub|\bdub\b|\bdubbed\b)/i,
/(Golumpa|torenter69|KamiFS|KaiDubs)/i
```
#### Preferred
!!! note
2 lines in one grouping is just there for readability purposes but achieves the same result and score.
4 years ago
---
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.
4 years ago
```bash
/dual[ ._-]?audio|EN\+JA|JA\+EN/i
```
4 years ago
---
Add this to your Preferred with a score of **[4000]**
!!! note
We are adding this as **4000** so that any unknown `Blu-Ray Remux` will get sent to the at least the second tier of Blu-Ray Remux and download and not skip it.
```bash
/\b((BD)?[-_. ]?Remux)\b/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.
```bash
/\b(?:(BluRay|Blu-Ray|BDMux|BD(?!$))|(BDRip)|(BRRip))(?:\b|$|[ .])/ix
```
---
Add this to your Preferred with a score of **[15]**
```bash
/\b(WEB[-_. ]DL|WEBDL|WebHD|[. ]WEB[. ](?:[xh]26[45]|DDP?5[. ]1)|[. ](?-i:WEB)$|\d+0p(?:WEB-DLMux|\b\s\/\sWEB\s\/\s\b))/ix
```
---
Add this to your Preferred with a score of **[10]**
```bash
/(WebRip|Web-Rip|WEBMux)/ix
```
---
Add this to your Preferred with a score of **[5]**
```bash
/\b(?:(1080p|1920x1080|1440p|FHD|1080i|4kto1080p))\b/i
```
!!! important
This is the end of the optional section.
Add this to your Preferred with a score of **[4500]**
BluRay-Remux / Dual-Audio / 1st Tier
```bash
4 years ago
/(deanzel|\bZR\b|\bCTR\b|\bSCY\b|\bMK\b|TTGA)/i
```
```bash
/(\bShir\b|LostYears|BluDragon|KAWAiREMUX)/i
```
```bash
4 years ago
/(\bAC\b|ShadyCrab|Rasetsu|Raizel|Dragon-Releases)/i
```
```bash
4 years ago
/(\[Spark\]|-Spark\b|\bREVO\b|\bSRLS\b|ANThELIa)/i
```
---
4 years ago
Add this to your Preferred with a score of **[4000]**
BluRay-Remux / Dual-Audio / 2nd Tier
```bash
4 years ago
/(iAHD|ANiHLS|MKVULTRA|\[Vanilla\]|-Vanilla\b)/i
```
---
4 years ago
Add this to your Preferred with a score of **[3750]**
BluRay / Dual-Audio / Special (Releases they have are in between below releases and remuxes above.)
```bash
/(E[.-]N[.-]D)/i
```
---
4 years ago
Add this to your Preferred with a score of **[3500]**
BluRay / Dual-Audio / 1st Tier
4 years ago
```bash
/(\bHAiKU\b|Exiled-Destiny|\b(E-D)\b|Koten[ ._-]Gars|Hark0N)/i
```
```bash
4 years ago
/(\[GHOST\]|-GHOST\b|\[NPC\]|-NPC\b|\bCBM\b)/i
```
```bash
4 years ago
/(\bKH\b|\bCBT\b|naiyas|ShowY|Kametsu)/i
```
---
4 years ago
Add this to your Preferred with a score of **[3000]**
BluRay / Dual-Audio / Scene|P2P Groups
```bash
4 years ago
/(\bDHD\b|RedBlade|TENEIGHTY|WaLMaRT)/i
```
4 years ago
```bash
4 years ago
/(\bBMF\b|\[STRiFE\]|-STRiFE\b)/i
4 years ago
```
---
4 years ago
Add this to your Preferred with a score of **[2500]**
BluRay / Dual-Audio / 2nd Tier
```bash
/(\[YURASUKA\]|-YURASUKA\b|karios|Arukoru)/i
```
```bash
/(\bRH\b|Arukoru|\[Prof\]|-Prof\b|KAN3D2M)/i
```
---
Add this to your Preferred with a score of **[2000]**
WebSource / Dual|Multi-Audio
```bash
/(DragsterPS)/i
```
---
4 years ago
Add this to your Preferred with a score of **[1500]**
WebSource / Dual-Audio
```bash
4 years ago
/(xPearse|\bMCR\b|\bKS\b|KiyoshiStar)/i
```
---
4 years ago
Add this to your Preferred with a score of **[1000]**
DVD / Dual-Audio
```bash
4 years ago
/(\b(A-L)\b)/i
```
---
4 years ago
Add this to your Preferred with a score of **[300]**
Subs with multi such as German, French , Spanish, Italian, Russian, Arabic, Portuguese and English
```bash
/(Erai-raws)/i
```
---
4 years ago
Add this to your Preferred with a score of **[250]**
Subs
```bash
/(HorribleSubs|SubsPlease|SallySubs)/i
```
---
4 years ago
Add this to your Preferred with a score of **[200]**
Subs 2nd Tier
```bash
/(\[Mysteria\]|-Mysteria\b|Asenshi|AkihitoSubs|\bASW\b)/i
```
4 years ago
```bash
/(\[meta\]|-meta\b|BlueLobster)/i
```
---
4 years ago
Add this to your Preferred with a score of **[150]**
Subs 3rd Tier
```bash
/(Commie|\bGJM\b|kBaraka)/i
```
---
4 years ago
Add this to your Preferred with a score of **[100]**
FanSubs 1st Tier
```bash
4 years ago
/(\bCH\b|\bFFF\b|Licca|Soldado|SNSbu)/i
```
```bash
/(Coalgirls|BlurayDesuYo|DameDesuYo)/i
```
---
4 years ago
Add this to your Preferred with a score of **[50]**
FanSubs 2nd Tier
```bash
/(\[Orphan\]|-Orphan\b|\[Yabai\]|-Yabai\b|\bNii-sama\b)/i
```
4 years ago
```bash
/(\[Doki\]|-Doki\b|\[Chihiro\]|-Chihiro\b|Final8)/i
```
---
!!! note
4 years ago
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.
4 years ago
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
```
---
4 years ago
Add this to your Preferred with a score of **[1]**
Adds version due to anime groups sometimes fixing issues with their releases.
```bash
4 years ago
/\d(v2)\b/i
```
---
4 years ago
Add this to your Preferred with a score of **[2]**
```bash
4 years ago
/\d(v3)\b/i
```
---
4 years ago
Add this to your Preferred with a score of **[3]**
```bash
4 years ago
/\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.
4 years ago
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
```
---
4 years ago
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)
```bash
4 years ago
/(\[Pixel\]|-Pixel\b\[EDGE\]|-EDGE\b|\[Ranger\]|-Ranger\b)/i
```
```bash
4 years ago
/(SpaceFish|DeadFish|\bDB\b|Man\.K|\bHR\b)/i
```
```bash
4 years ago
/(BakedFish|N[eo][wo]b[ ._-]?Subs|\bAnime Time\b)/i
```
```bash
4 years ago
/(AnimeKaizoku|Kaizoku|\bCBB\b|phazer11)/i
```
```bash
/(iPUNISHER|MiniTheatre|MiniFreeza|Mr\.Deadpool)/i
```
```bash
4 years ago
/(NemDiggers|Project-gxs|youshikibi)/i
```
4 years ago
```bash
/(\bMD\b|Pog42|mdcx|\bPAS\b|SHiN-gx)/i
```
```bash
/(A-Destiny|TOPKEK|\bUwU\b|DARKFLiX)/i
```
```bash
/(\[Maximus\]|-Maximus\b|\[224\]|-224\b)/i
```
```bash
/(\[Harunatsu\]|-Harunatsu\b)/i
```
```bash
/(\[tenshi\]|-tenshi\b)/i
```
```bash
/(\[Davinci\]|-Davinci\b)/i
```
??? tip "If you would like the above to be in DO NOT WANT in an easy format here it is."
```bash
4 years ago
/(\[Pixel\]|-Pixel\b\[EDGE\]|-EDGE\b|\[Ranger\]|-Ranger\b)/i,
/(SpaceFish|DeadFish|\bDB\b|Man\.K|\bHR\b)/i,
/(BakedFish|N[eo][wo]b[ ._-]?Subs|\bAnime Time\b)/i,
/(AnimeKaizoku|Kaizoku|\bCBB\b|phazer11)/i,
/(iPUNISHER|MiniTheatre|MiniFreeza|Mr\.Deadpool)/i,
4 years ago
/(NemDiggers|Project-gxs|youshikibi)/i,
/(\bMD\b|Pog42|mdcx|\bPAS\b|SHiN-gx)/i,
/(A-Destiny|TOPKEK|\bUwU\b|DARKFLiX)/i,
/(\[Maximus\]|-Maximus\b|\[224\]|-224\b)/i,
/(\[Harunatsu\]|-Harunatsu\b)/i,
/(\[tenshi\]|-tenshi\b)/i,
/(\[Davinci\]|-Davinci\b)/i
```
4 years ago
!!! note
When done it should look something like this:
![!rpa-release-profile-2](images/rpa-release-profile-2.png)
---
### Completed
When completed your Release Profiles should look like this:
4 years ago
![!rpa-release-profile-3](images/rpa-release-profile-3.png)
### Acknowledgements
Most of my information and knowledge came from:
- Kaiser (Guidance on anime groups)
- rg9400 (Guidance on regex fixes, anime groups and general knowledge share.)
- Drazzilb (Guidance on regex fixes, anime groups and general knowledge share.)
- [TRaSH](https://trash-guides.info/) (For allowing me to utilize his website for my guide and general knowledge share.)
Thanks a bunch!!