mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
New: (Newznab) Parse PosterUrl when available
This commit is contained in:
@@ -62,6 +62,7 @@ namespace NzbDrone.Core.Indexers.Torznab
|
||||
}
|
||||
|
||||
torrentInfo.IndexerFlags = GetFlags(item);
|
||||
torrentInfo.PosterUrl = GetPosterUrl(item);
|
||||
}
|
||||
|
||||
return torrentInfo;
|
||||
@@ -133,6 +134,11 @@ namespace NzbDrone.Core.Indexers.Torznab
|
||||
return !imdbIdString.IsNullOrWhiteSpace() ? imdbIdString.Substring(2) : null;
|
||||
}
|
||||
|
||||
protected virtual string GetPosterUrl(XElement item)
|
||||
{
|
||||
return ParseUrl(TryGetTorznabAttribute(item, "coverurl"));
|
||||
}
|
||||
|
||||
protected override string GetInfoHash(XElement item)
|
||||
{
|
||||
return TryGetTorznabAttribute(item, "infohash");
|
||||
|
||||
Reference in New Issue
Block a user