mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
New: Newznab will show indexer name and logo when possible.
This commit is contained in:
parent
ba3b034a3c
commit
f26ef627df
6 changed files with 14 additions and 3 deletions
|
@ -85,6 +85,8 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
{
|
||||
if (item.Links.Count > 1)
|
||||
currentResult.Size = item.Links[1].Length;
|
||||
|
||||
currentResult.Indexer = GetName(item);
|
||||
}
|
||||
|
||||
return currentResult;
|
||||
|
@ -107,5 +109,11 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
|
||||
return urls.ToArray();
|
||||
}
|
||||
|
||||
private string GetName(SyndicationItem item)
|
||||
{
|
||||
var hostname = item.Links[0].Uri.DnsSafeHost.ToLower();
|
||||
return String.Format("{0}_{1}", Name, hostname);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue