Regex syntax in preferred words is being added into the filename


#1

Sonarr version (exact version): 3.0.1.371

Mono version (if Sonarr is not running on Windows): 5.18.0.240

OS: Ubuntu 18.04

Description of issue:

Regex syntax in preferred words is being added into the filenames vs just the specified “group” in the syntax.

Preferred word:
Keyword: /\b(Amazon)\.?WEB\-DL\b/i
Score of: +99

Naming:
{Series.CleanTitle}.S{season:00}E{episode:00}.{QUALITY.REAL}.{QUALITY.PROPER}.{Preferred.Words}.{Quality.Title}.{MediaInfo.VideoCodec}-{RELEASE.GROUP}

Include Preferred when Renaming: yes

Source:
Storage.Wars.S01E01.High.Noon.in.the.High.Desert.1080p.Amazon.WEB-DL.DD+2.0.H.264-QOQ.mkv

Destination:
Storage.Wars.S01E01.++b(Amazon)+.!WEB+-DL+b+i.1080p.WEB-DL.h264-QOQ.mkv

Expected Destination:
Storage.Wars.S01E01.Amazon.1080p.WEB-DL.h264-QOQ.mkv


#2

I know why, but I’ll have to look at what we can do to fix that. You may need to make changes to match what you want and exclude the rest, there will be a change log message when the fix lands.


#3

Thank you! Always appreciated!

PS I was just trying to match “Amazon” in a filename’s quality identifier vs in its episode title.


closed #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.