mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
New: Option to prefer magnet URLs over torrent file links
Co-authored-by: Deathspike <meister.deathspike@outlook.com> New: Bulk edit Prefer Magnet Url for indexers
This commit is contained in:
@@ -198,7 +198,9 @@ namespace NzbDrone.Api.V1.Indexers
|
||||
}
|
||||
}
|
||||
|
||||
return CreateResponse(results.ToXml(indexer.Protocol));
|
||||
var preferMagnetUrl = indexer.Protocol == DownloadProtocol.Torrent && indexerDef.Settings is ITorrentIndexerSettings torrentIndexerSettings && (torrentIndexerSettings.TorrentBaseSettings?.PreferMagnetUrl ?? false);
|
||||
|
||||
return CreateResponse(results.ToXml(indexer.Protocol, preferMagnetUrl));
|
||||
default:
|
||||
return CreateResponse(CreateErrorXML(202, $"No such function ({requestType})"), statusCode: StatusCodes.Status400BadRequest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user