mirror of https://github.com/Jackett/Jackett
xthor: replace vostfr with english (#8797)
This commit is contained in:
parent
80e6dcf54a
commit
0de5606c2e
|
@ -230,6 +230,9 @@ namespace Jackett.Common.Indexers
|
|||
torrent.name = regex.Replace(torrent.name, "$1" + ReplaceMulti + "$2");
|
||||
}
|
||||
|
||||
// issue #8759 replace vostfr and subfrench with English
|
||||
if (ConfigData.Vostfr.Value) torrent.name = torrent.name.Replace("VOSTFR","ENGLISH").Replace("SUBFRENCH","ENGLISH");
|
||||
|
||||
var publishDate = DateTimeUtil.UnixTimestampToDateTime(torrent.added);
|
||||
//TODO replace with download link?
|
||||
var guid = new Uri(TorrentDescriptionUrl.Replace("{id}", torrent.id.ToString()));
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke
|
|||
public BoolItem HardDriveCache { get; private set; }
|
||||
public StringItem HardDriveCacheKeepTime { get; private set; }
|
||||
|
||||
public BoolItem Vostfr { get; private set; }
|
||||
|
||||
public ConfigurationDataXthor()
|
||||
: base()
|
||||
{
|
||||
|
@ -28,6 +30,8 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke
|
|||
DevMode = new BoolItem { Name = "Enable DEV MODE (Developers ONLY)", Value = false };
|
||||
HardDriveCache = new BoolItem { Name = "Enable HARD DRIVE CACHE (Developers ONLY)", Value = false };
|
||||
HardDriveCacheKeepTime = new StringItem { Name = "Keep Cached files for (ms)", Value = "300000" };
|
||||
Vostfr = new BoolItem() { Name = "Replace VOSTFR or SUBFRENCH with ENGLISH", Value = false };
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue