Skip to content

Commit 937ebcd

Browse files
asherbigQstick
authored andcommittedFeb 11, 2024
New: Add RZeroX to release group parsing exceptions
Closes #9569 Clsoes #9719 (cherry picked from commit e2210228b34a4d98ef64965e810689d39733734e)
1 parent 67f5199 commit 937ebcd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/NzbDrone.Core.Test/ParserTests/ReleaseGroupParserFixture.cs

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ public void should_parse_expected_release_group(string title, string expected)
116116
[TestCase("Movie Title (2011) [BluRay] [1080p] [YTS.MX] [YIFY]", "YIFY")]
117117
[TestCase("Movie Title (2014) [BluRay] [1080p] [YIFY] [YTS]", "YTS")]
118118
[TestCase("Movie Title (2018) [BluRay] [1080p] [YIFY] [YTS.LT]", "YTS.LT")]
119+
[TestCase("Movie Title (2016) (1080p AMZN WEB-DL x265 HEVC 10bit EAC3 5 1 RZeroX) QxR", "RZeroX")]
120+
[TestCase("Movie Title (2016) (1080p AMZN WEB-DL x265 HEVC 10bit EAC3 5 1 Garshasp) QxR", "Garshasp")]
119121
public void should_parse_exception_release_group(string title, string expected)
120122
{
121123
Parser.Parser.ParseReleaseGroup(title).Should().Be(expected);

‎src/NzbDrone.Core/Parser/Parser.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static class Parser
153153

154154
// Handle Exception Release Groups that don't follow -RlsGrp; Manual List
155155
// groups whose releases end with RlsGroup) or RlsGroup]
156-
private static readonly Regex ExceptionReleaseGroupRegex = new Regex(@"(?<releasegroup>(Joy|FreetheFish|afm72|Anna|Bandi|Ghost|Kappa|MONOLITH|Qman|RZeroX|SAMPA|Silence|theincognito|t3nzin|Vyndros|HDO|DusIctv|DHD|SEV|CtrlHD|-ZR-|ADC|XZVN|RH|Kametsu|r00t|HONE|Vyndros)(?=\]|\)))", RegexOptions.IgnoreCase | RegexOptions.Compiled);
156+
private static readonly Regex ExceptionReleaseGroupRegex = new Regex(@"(?<releasegroup>(Silence|afm72|Panda|Ghost|MONOLITH|Tigole|Joy|ImE|UTR|t3nzin|Anime Time|Project Angel|Hakata Ramen|HONE|Vyndros|SEV|Garshasp|Kappa|Natty|RCVR|SAMPA|YOGI|r00t|EDGE2020|RZeroX|FreetheFish|Anna|Bandi|Qman|theincognito|HDO|DusIctv|DHD|CtrlHD|-ZR-|ADC|XZVN|RH|Kametsu|Garshasp)(?=\]|\)))", RegexOptions.IgnoreCase | RegexOptions.Compiled);
157157

158158
// Handle Exception Release Groups that don't follow -RlsGrp; Manual List
159159
// name only...BE VERY CAREFUL WITH THIS, HIGH CHANCE OF FALSE POSITIVES

0 commit comments

Comments
 (0)
Please sign in to comment.