mirror of https://github.com/Jackett/Jackett
divteam, hachede, mejortorrent, puntotorrent, torrentland, vizuk, zonaq: improve radarr search (#10148)
This commit is contained in:
parent
bfb9baee77
commit
32f0006680
|
@ -139,6 +139,8 @@ search:
|
|||
args: ["\\.+", "."] # More than 1 dot -> .
|
||||
- name: re_replace
|
||||
args: ["^\\.", ""] # Delete first dot
|
||||
- name: re_replace
|
||||
args: ["UHDRip", "BDRip"] # Fix for Radarr
|
||||
poster:
|
||||
selector: a[onmouseover][href^="index.php?page=torrent-details"]
|
||||
attribute: onmouseover
|
||||
|
|
|
@ -183,6 +183,12 @@ search:
|
|||
args: ["\\.+", "."] # More than 1 dot -> .
|
||||
- name: re_replace
|
||||
args: ["^\\.", ""] # Delete first dot
|
||||
- name: re_replace
|
||||
args: [".BR.", ".BDRip."] # Fix for Radarr
|
||||
- name: re_replace
|
||||
args: ["(?i)m720p", "MicroHD.720p"] # Fix for Radarr
|
||||
- name: re_replace
|
||||
args: ["(?i)m1080p", "MicroHD.1080p"] # Fix for Radarr
|
||||
details:
|
||||
selector: td.torrent_name > a, .newIndicator > a
|
||||
attribute: href
|
||||
|
|
|
@ -260,7 +260,7 @@ search:
|
|||
- name: append
|
||||
args: "2160p.Spanish-PuntoTorrent"
|
||||
|
||||
title|append: # 1080
|
||||
title|append: # 1080p
|
||||
selector: td:nth-child(2) a:contains("1080"),a:contains("microhd"),a:contains("mhd"),a:contains("BDRemux"):not(:contains("2160"))
|
||||
optional: true
|
||||
filters:
|
||||
|
@ -269,7 +269,7 @@ search:
|
|||
- name: append
|
||||
args: "1080p.Spanish-PuntoTorrent"
|
||||
|
||||
title|append: # 720
|
||||
title|append: # 720p
|
||||
selector: td:nth-child(2) a:contains("720")
|
||||
optional: true
|
||||
filters:
|
||||
|
@ -278,14 +278,14 @@ search:
|
|||
- name: append
|
||||
args: "720p.Spanish-PuntoTorrent"
|
||||
|
||||
title|append: # 480
|
||||
selector: td:nth-child(2) a:contains("Xvid"),a:contains("XVID"),a:contains("xvid")
|
||||
title|append: # 480p
|
||||
selector: td:nth-child(2) a:contains("480"),a:contains("Xvid"),a:contains("XVID"),a:contains("xvid")
|
||||
optional: true
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: [".", ""]
|
||||
- name: append
|
||||
args: "480.Spanish-PuntoTorrent"
|
||||
args: "480p.Spanish-PuntoTorrent"
|
||||
|
||||
title:
|
||||
selector: td:nth-child(2) a:contains("VOSE")
|
||||
|
|
|
@ -170,16 +170,20 @@ search:
|
|||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)\\bT(\\d+)", "S$1"]
|
||||
- name: re_replace
|
||||
args: ["UHDRip", "BDRip"] # Fix for Radarr
|
||||
- name: append
|
||||
args: " [English]"
|
||||
args: " ENGLiSH"
|
||||
title:
|
||||
selector: td:nth-child(2) a:not(:contains("VOSE"))
|
||||
optional: true
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["(?i)\\bT(\\d+)", "S$1"]
|
||||
- name: re_replace
|
||||
args: ["UHDRip", "BDRip"] # Fix for Radarr
|
||||
- name: append
|
||||
args: " [Spanish]"
|
||||
args: " SPANiSH"
|
||||
poster:
|
||||
optional: true
|
||||
selector: td:nth-child(2) a
|
||||
|
|
|
@ -127,6 +127,8 @@ search:
|
|||
keywordsfilters:
|
||||
- name: re_replace
|
||||
args: ["S0?(\\d{1,2})E(\\d{1,2})", "$1x$2"]
|
||||
- name: re_replace
|
||||
args: ["\\s*(19|20)\\d{2}$", ""] # Fix for Radarr. Remove the year
|
||||
inputs:
|
||||
p: torrents
|
||||
page: 1
|
||||
|
@ -152,7 +154,7 @@ search:
|
|||
selector: td.torrent_name > a, .newIndicator > a
|
||||
filters:
|
||||
- name: append
|
||||
args: " [spanish]"
|
||||
args: " SPANiSH"
|
||||
details:
|
||||
selector: td.torrent_name > a, .newIndicator > a
|
||||
attribute: href
|
||||
|
|
|
@ -344,6 +344,7 @@ namespace Jackett.Common.Indexers
|
|||
if (queryMatch.Success)
|
||||
quality = queryMatch.Groups[1].Value;
|
||||
quality = quality.Trim().Replace("-", " ");
|
||||
quality = Regex.Replace(quality, "HDRip", "BDRip", RegexOptions.IgnoreCase); // fix for Radarr
|
||||
}
|
||||
|
||||
// add the year
|
||||
|
|
|
@ -6,6 +6,7 @@ using System.Globalization;
|
|||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using AngleSharp.Html.Parser;
|
||||
|
@ -178,6 +179,9 @@ namespace Jackett.Common.Indexers
|
|||
continue;
|
||||
|
||||
var title = qTitleLink.TextContent.Trim();
|
||||
title += " SPANiSH"; // fix for Radarr
|
||||
title = Regex.Replace(title, "4k", "2160p", RegexOptions.IgnoreCase);
|
||||
|
||||
var detailsStr = qTitleLink.GetAttribute("href");
|
||||
var details = new Uri(detailsStr);
|
||||
var link = new Uri(detailsStr.Replace("/index.php?page=torrent-details&", "/download.php?"));
|
||||
|
|
Loading…
Reference in New Issue