mirror of
https://github.com/Readarr/Readarr
synced 2026-01-18 05:24:21 +01:00
Remove BasicAuthString
This commit is contained in:
parent
7a7039b1f7
commit
db7bb14491
3 changed files with 0 additions and 13 deletions
|
|
@ -47,12 +47,6 @@ public override string Download(RemoteBook remoteBook, IIndexer indexer)
|
|||
var request = indexer.GetDownloadRequest(url);
|
||||
request.RateLimitKey = remoteBook?.Release?.IndexerId.ToString();
|
||||
|
||||
// TODO: Look into moving download request handling to indexer
|
||||
if (remoteBook.Release.BasicAuthString.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
request.Headers.Set("Authorization", "Basic " + remoteBook.Release.BasicAuthString);
|
||||
}
|
||||
|
||||
nzbData = _httpClient.Get(request).ResponseData;
|
||||
|
||||
_logger.Debug("Downloaded nzb for release '{0}' finished ({1} bytes from {2})", remoteBook.Release.Title, nzbData.Length, url);
|
||||
|
|
|
|||
|
|
@ -156,7 +156,6 @@ protected virtual ReleaseInfo ProcessItem(XElement item, ReleaseInfo releaseInfo
|
|||
releaseInfo.Title = GetTitle(item);
|
||||
releaseInfo.PublishDate = GetPublishDate(item);
|
||||
releaseInfo.DownloadUrl = GetDownloadUrl(item);
|
||||
releaseInfo.BasicAuthString = GetBasicAuth();
|
||||
releaseInfo.InfoUrl = GetInfoUrl(item);
|
||||
releaseInfo.CommentUrl = GetCommentUrl(item);
|
||||
releaseInfo.Categories = GetCategories(item);
|
||||
|
|
@ -200,11 +199,6 @@ protected virtual DateTime GetPublishDate(XElement item)
|
|||
return XElementExtensions.ParseDate(dateString);
|
||||
}
|
||||
|
||||
protected virtual string GetBasicAuth()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
protected virtual string GetDownloadUrl(XElement item)
|
||||
{
|
||||
if (UseEnclosureUrl)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ public class ReleaseInfo
|
|||
public string Title { get; set; }
|
||||
public long Size { get; set; }
|
||||
public string DownloadUrl { get; set; }
|
||||
public string BasicAuthString { get; set; }
|
||||
public string InfoUrl { get; set; }
|
||||
public string CommentUrl { get; set; }
|
||||
public int IndexerId { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue