mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
animebytes: parse M2TS property as BR-DISK
This commit is contained in:
@@ -377,15 +377,21 @@ namespace Jackett.Common.Indexers
|
|||||||
// MST with additional 5 hours per GB
|
// MST with additional 5 hours per GB
|
||||||
var minimumSeedTime = 259200 + (int)(size / (int)Math.Pow(1024, 3) * 18000);
|
var minimumSeedTime = 259200 + (int)(size / (int)Math.Pow(1024, 3) * 18000);
|
||||||
|
|
||||||
var properties = WebUtility.HtmlDecode(torrent.Value<string>("Property"))
|
var propertyList = WebUtility.HtmlDecode(torrent.Value<string>("Property"))
|
||||||
.Split('|')
|
.Split('|')
|
||||||
.Select(t => t.Trim())
|
.Select(t => t.Trim())
|
||||||
.Where(p => p.IsNotNullOrWhiteSpace())
|
.Where(p => p.IsNotNullOrWhiteSpace())
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
properties.RemoveAll(p => _excludedProperties.Any(p.ContainsIgnoreCase));
|
propertyList.RemoveAll(p => _excludedProperties.Any(p.ContainsIgnoreCase));
|
||||||
|
var properties = new HashSet<string>(propertyList);
|
||||||
|
|
||||||
if (!AllowRaws && properties.Any(p => p.StartsWithIgnoreCase("RAW")))
|
if (properties.Any(p => p.StartsWithIgnoreCase("M2TS")))
|
||||||
|
{
|
||||||
|
properties.Add("BR-DISK");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!AllowRaws && properties.Any(p => p.StartsWithIgnoreCase("RAW") || p.Contains("BR-DISK")))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user