mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-13 00:10:58 +02:00
New: (Internet Archive) Add Torrent File Only option. (#459)
This commit is contained in:
parent
d7e1043b79
commit
4347e1cf7a
1 changed files with 6 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
UploadVolumeFactor = 1
|
||||
};
|
||||
|
||||
if (searchResult.InfoHash != null)
|
||||
if (!_settings.TorrentFileOnly && searchResult.InfoHash != null)
|
||||
{
|
||||
release.MagnetUrl = MagnetLinkBuilder.BuildPublicMagnetLink(searchResult.InfoHash, title);
|
||||
}
|
||||
|
|
@ -294,7 +294,10 @@ public class InternetArchiveSettings : IIndexerSettings
|
|||
[FieldDefinition(4, Label = "Title Only", Type = FieldType.Checkbox, Advanced = true, HelpText = "Whether to search in title only.")]
|
||||
public bool TitleOnly { get; set; }
|
||||
|
||||
[FieldDefinition(5)]
|
||||
[FieldDefinition(5, Label = "Torrent File Only", Type = FieldType.Checkbox, Advanced = true, HelpText = "Only use torrent files, not magnet links.")]
|
||||
public bool TorrentFileOnly { get; set; }
|
||||
|
||||
[FieldDefinition(6)]
|
||||
public IndexerBaseSettings BaseSettings { get; set; } = new IndexerBaseSettings();
|
||||
|
||||
public InternetArchiveSettings()
|
||||
|
|
@ -302,6 +305,7 @@ public InternetArchiveSettings()
|
|||
SortBy = (int)InternetArchiveSort.PublicDate;
|
||||
SortOrder = (int)InternetArchiveSortOrder.Descending;
|
||||
TitleOnly = false;
|
||||
TorrentFileOnly = false;
|
||||
}
|
||||
|
||||
public NzbDroneValidationResult Validate()
|
||||
|
|
|
|||
Loading…
Reference in a new issue