mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04: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 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
UploadVolumeFactor = 1
|
||||
};
|
||||
|
||||
if (searchResult.InfoHash != null)
|
||||
if (!_settings.TorrentFileOnly && searchResult.InfoHash != null)
|
||||
{
|
||||
release.MagnetUrl = MagnetLinkBuilder.BuildPublicMagnetLink(searchResult.InfoHash, title);
|
||||
}
|
||||
|
@ -294,7 +294,10 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
[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 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
SortBy = (int)InternetArchiveSort.PublicDate;
|
||||
SortOrder = (int)InternetArchiveSortOrder.Descending;
|
||||
TitleOnly = false;
|
||||
TorrentFileOnly = false;
|
||||
}
|
||||
|
||||
public NzbDroneValidationResult Validate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue