Skip to content

Commit

Permalink
Fixed BR-DISK detection for AnimeBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jan 14, 2025
1 parent 3b83a00 commit 8c2d5a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
propertyList.RemoveAll(p => ExcludedProperties.Any(p.ContainsIgnoreCase));
var properties = propertyList.ToHashSet();

if (properties.Any(p => p.ContainsIgnoreCase("M2TS")))
if (properties.Any(p => p.StartsWith("M2TS", StringComparison.Ordinal)))
{
properties.Add("BR-DISK");
}

var isBluRayDisk = properties.Any(p => p.ContainsIgnoreCase("RAW") || p.ContainsIgnoreCase("M2TS") || p.ContainsIgnoreCase("ISO"));
var isBluRayDisk = properties.Any(p => p.Equals("RAW", StringComparison.Ordinal) || p.StartsWith("M2TS", StringComparison.Ordinal) || p.StartsWith("ISO", StringComparison.Ordinal));

if (_settings.ExcludeRaw && isBluRayDisk)
{
Expand Down

0 comments on commit 8c2d5a4

Please sign in to comment.