1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 04:38:20 +00:00

newpct: fix download link and remove duplicate episodes (#6933)

This commit is contained in:
Diego Heras 2020-01-12 04:25:26 +01:00 committed by garfield69
parent f0d05b5a56
commit 3d5c32b63a

View file

@ -92,7 +92,10 @@ namespace Jackett.Common.Indexers
private Regex _titleClassicTvQualityRegex = new Regex(@"\[([^\]]*HDTV[^\]]*)", RegexOptions.IgnoreCase);
private DownloadMatcher[] _downloadMatchers = new DownloadMatcher[]
{
new DownloadMatcher() { MatchRegex = new Regex("([^\"]*/descargar-torrent/[^\"]*)") },
new DownloadMatcher()
{
MatchRegex = new Regex("(/descargar-torrent/[^\"]+)\"")
},
new DownloadMatcher()
{
MatchRegex = new Regex(@"nalt\s*=\s*'([^\/]*)"),
@ -394,6 +397,9 @@ namespace Jackett.Common.Indexers
}
}
// remove duplicates
newpctReleases = newpctReleases.GroupBy(x => x.Guid).Select(y => y.First()).ToList();
//Filter only episodes needed
return newpctReleases.Where(r =>
{