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:
parent
f0d05b5a56
commit
3d5c32b63a
1 changed files with 7 additions and 1 deletions
|
@ -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 =>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue