mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
New: (Newznab) Parse PosterUrl when available
This commit is contained in:
@@ -99,6 +99,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
releaseInfo.ImdbId = GetImdbId(item);
|
||||
releaseInfo.Grabs = GetGrabs(item);
|
||||
releaseInfo.Files = GetFiles(item);
|
||||
releaseInfo.PosterUrl = GetPosterUrl(item);
|
||||
|
||||
return releaseInfo;
|
||||
}
|
||||
@@ -220,6 +221,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected virtual string GetPosterUrl(XElement item)
|
||||
{
|
||||
return ParseUrl(TryGetNewznabAttribute(item, "coverurl"));
|
||||
}
|
||||
|
||||
protected virtual int GetFiles(XElement item)
|
||||
{
|
||||
var filesString = TryGetNewznabAttribute(item, "files");
|
||||
|
||||
Reference in New Issue
Block a user