mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 04:38:20 +00:00
elitetracker: add vostfr to English replacement config option. resolves #6855
This commit is contained in:
parent
0beb82bbd6
commit
6e9c312679
2 changed files with 8 additions and 1 deletions
|
@ -270,6 +270,11 @@ namespace Jackett.Common.Indexers
|
|||
System.Text.RegularExpressions.Regex regex = new Regex("(?i)([\\.\\- ])MULTI([\\.\\- ])");
|
||||
release.Title = regex.Replace(release.Title, "$1" + ReplaceMulti + "$2");
|
||||
}
|
||||
// issue #6855 Replace VOSTFR with ENGLISH
|
||||
if (configData.Vostfr.Value)
|
||||
{
|
||||
release.Title = release.Title.Replace("VOSTFR", "ENGLISH");
|
||||
}
|
||||
|
||||
if (pretime != null)
|
||||
{
|
||||
|
|
|
@ -5,13 +5,15 @@
|
|||
public BoolItem TorrentHTTPSMode { get; private set; }
|
||||
public DisplayItem PagesWarning { get; private set; }
|
||||
public StringItem ReplaceMulti { get; private set; }
|
||||
public BoolItem Vostfr { get; private set; }
|
||||
|
||||
public ConfigurationDataEliteTracker()
|
||||
: base()
|
||||
{
|
||||
TorrentHTTPSMode = new BoolItem { Name = "Use https for tracker URL", Value = false };
|
||||
PagesWarning = new DisplayItem("<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Replace MULTI</b>, replace multi keyword in the resultset (leave empty to deactivate)</li></ul>") { Name = "Preferences" };
|
||||
PagesWarning = new DisplayItem("<b>Preferences Configuration</b> (<i>Tweak your search settings</i>),<br /><br /> <ul><li><b>Replace MULTI</b>, replace multi keyword in the resultset (leave empty to deactivate)</li><li><b>Replace VOSTFR with ENGLISH</b> lets you change the titles by replacing VOSTFR with ENGLISH.</li></ul>") { Name = "Preferences" };
|
||||
ReplaceMulti = new StringItem() { Name = "Replace MULTI", Value = "MULTI.FRENCH" };
|
||||
Vostfr = new BoolItem() { Name = "Replace VOSTFR with ENGLISH", Value = false };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue