xthor: replace vostfr with english (#8797)

This commit is contained in:
Tawagot0 2020-05-28 19:39:09 +02:00 committed by GitHub
parent 80e6dcf54a
commit 0de5606c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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()));

View File

@ -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 };
}
}
}