mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 15:47:09 -07:00
Fixed: Adjusted BTN Recent Feed (RssSync) to better use their api db indexes.
This commit is contained in:
parent
2f3bc61af7
commit
0f1afd416b
5 changed files with 47 additions and 13 deletions
|
@ -44,14 +44,27 @@ namespace NzbDrone.Common.Http
|
|||
|
||||
public override string ToString()
|
||||
{
|
||||
if (ContentSummary == null)
|
||||
return ToString();
|
||||
}
|
||||
|
||||
public string ToString(bool includeMethod = true, bool includeSummary = true)
|
||||
{
|
||||
var builder = new StringBuilder();
|
||||
|
||||
if (includeMethod)
|
||||
{
|
||||
return string.Format("Req: [{0}] {1}", Method, Url);
|
||||
builder.AppendFormat("Req: [{0}] ", Method);
|
||||
}
|
||||
else
|
||||
|
||||
builder.Append(Url);
|
||||
|
||||
if (includeSummary && ContentSummary.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
return string.Format("Req: [{0}] {1}: {2}", Method, Url, ContentSummary);
|
||||
builder.Append(": ");
|
||||
builder.Append(ContentSummary);
|
||||
}
|
||||
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
public void SetContent(byte[] data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue