diff --git a/src/Jackett.Common/Indexers/FileList.cs b/src/Jackett.Common/Indexers/FileList.cs index 4b5d4e413..59ae938e9 100644 --- a/src/Jackett.Common/Indexers/FileList.cs +++ b/src/Jackett.Common/Indexers/FileList.cs @@ -18,11 +18,14 @@ namespace Jackett.Common.Indexers [ExcludeFromCodeCoverage] public class FileList : BaseWebIndexer { + public override string[] AlternativeSiteLinks { get; protected set; } = { + "https://flro.org/" + }; + public override string[] LegacySiteLinks { get; protected set; } = { - "http://filelist.ro/", "https://filelist.ro/", - "https://flro.org/", + "http://filelist.ro/", "http://flro.org/" }; @@ -132,11 +135,17 @@ namespace Jackett.Common.Indexers foreach (var row in json) { + var isFreeleech = row.Value("freeleech"); + + // skip non-freeleech results when freeleech only is set + if (configData.Freeleech.Value && !isFreeleech) + continue; + var detailsUri = new Uri(DetailsUrl + "?id=" + row.Value("id")); var seeders = row.Value("seeders"); var peers = seeders + row.Value("leechers"); var publishDate = DateTime.Parse(row.Value("upload_date") + " +0200", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal); - var downloadVolumeFactor = row.Value("freeleech") ? 0 : 1; + var downloadVolumeFactor = isFreeleech ? 0 : 1; var uploadVolumeFactor = row.Value("doubleup") ? 2 : 1; var imdbId = ((JObject)row).ContainsKey("imdb") ? ParseUtil.GetImdbID(row.Value("imdb")) : null; var link = new Uri(row.Value("download_link")); diff --git a/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataFileList.cs b/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataFileList.cs index 5cddc5240..061be74f2 100644 --- a/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataFileList.cs +++ b/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataFileList.cs @@ -11,7 +11,7 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke public ConfigurationDataFileList() : base("Note this is not your password.
  • Login to the FileList Website
  • Click on the Profile link
  • Scroll down to the Reset Passkey section
  • Copy the passkey.
  • Also be aware of not leaving a trailing blank at the end of the passkey after pasting it here.
") { - Freeleech = new BoolConfigurationItem("Search freeleech only (currently works only when searching)") { Value = false }; + Freeleech = new BoolConfigurationItem("Search freeleech only") { Value = false }; CatWarning = new DisplayInfoConfigurationItem("CatWarning", "When mapping TV ensure you add category 5000 in addition to 5030, 5040."); } }