Update Sonarr-Release-Profile-RegEx.md

- Changed: regex .? to [ ._-]? so it only recognizes space, dot, under score and dash
- Added: word boundary anchor \b
pull/95/head
TRaSH 4 years ago
parent 1dedc17c9a
commit cdb5b86796

@ -86,59 +86,59 @@ The Number between the **[**brackets**]** are the scores the release name will g
Add this to your `Preferred (3)` with a score of [100] Add this to your `Preferred (3)` with a score of [100]
```bash ```bash
/(amzn|amazon)(?=.?web.?(dl|rip))/i /(amzn|\bamazon\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(atvp|aptv)(?=.?web.?(dl|rip))/i /(atvp|aptv)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(hmax)(?=.?web.?(dl|rip))/i /(hmax)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
Add this to your `Preferred (3)` with a score of [95] Add this to your `Preferred (3)` with a score of [95]
```bash ```bash
/(sho)(?=.?web.?(dl|rip))/i /(\bsho\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
Add this to your `Preferred (3)` with a score of [90] Add this to your `Preferred (3)` with a score of [90]
```bash ```bash
/(dsnp|dsny|disney)(?=.?web.?(dl|rip))/i /(dsnp|dsny|\bdisney\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(nf|netflix)(?=.?web.?(dl|rip))/i /(nf|\bnetflix\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(qibi)(?=.?web.?(dl|rip))/i /(\bqibi\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
Add this to your `Preferred (3)` with a score of [85] Add this to your `Preferred (3)` with a score of [85]
```bash ```bash
/(hulu)(?=.?web.?(dl|rip))/i /(\bhulu\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
Add this to your `Preferred (3)` with a score of [75] Add this to your `Preferred (3)` with a score of [75]
```bash ```bash
/(dcu)(?=.?web.?(dl|rip))/i /(dcu)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(hbo)(?=.?web.?(dl|rip))/i /(hbo)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(red)(?=.?web.?(dl|rip))/i /(\bred\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
```bash ```bash
/(it)(?=.?web.?(dl|rip))/i /(\bit\b)(?=[ ._-]?web[ ._-]?(dl|rip))/i
``` ```
!!! note !!! note
@ -167,7 +167,7 @@ Add this to your `Preferred (3)` with a score of [75]
Add this to your `Must not contain (2)` Add this to your `Must not contain (2)`
```bash ```bash
/(?=(1080|720)).*((x|h).?265|hevc)/i /(?=(1080|720)).*((x|h)[ ._-]?265|hevc)/i
``` ```
??? success "example" ??? success "example"
@ -176,7 +176,7 @@ Add this to your `Must not contain (2)`
??? info "Why the Must Not Contain entry" ??? info "Why the Must Not Contain entry"
So why did I put `/(?=(1080|720)).*((x|h).?265|hevc)/i` as `Must Not Contain` and what does it do ? So why did I put `/(?=(1080|720)).*((x|h)[ ._-]?265|hevc)/i` as `Must Not Contain` and what does it do ?
It blocks/ignores 720/1080p releases that are encoded in x265, why ? It blocks/ignores 720/1080p releases that are encoded in x265, why ?

Loading…
Cancel
Save