mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Cleanup Conflicts in Sonarr/Lidarr Pulls
Co-Authored-By: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com>
This commit is contained in:
@@ -79,8 +79,8 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
{
|
||||
releaseInfo = base.ProcessItem(item, releaseInfo);
|
||||
|
||||
releaseInfo.Author = GetArtist(item);
|
||||
releaseInfo.Book = GetAlbum(item);
|
||||
releaseInfo.Author = GetAuthor(item);
|
||||
releaseInfo.Book = GetBook(item);
|
||||
|
||||
return releaseInfo;
|
||||
}
|
||||
@@ -121,25 +121,25 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
return base.GetPublishDate(item);
|
||||
}
|
||||
|
||||
protected virtual string GetArtist(XElement item)
|
||||
protected virtual string GetAuthor(XElement item)
|
||||
{
|
||||
var artistString = TryGetNewznabAttribute(item, "author");
|
||||
var authorString = TryGetNewznabAttribute(item, "author");
|
||||
|
||||
if (!artistString.IsNullOrWhiteSpace())
|
||||
if (!authorString.IsNullOrWhiteSpace())
|
||||
{
|
||||
return artistString;
|
||||
return authorString;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
protected virtual string GetAlbum(XElement item)
|
||||
protected virtual string GetBook(XElement item)
|
||||
{
|
||||
var albumString = TryGetNewznabAttribute(item, "booktitle");
|
||||
var bookString = TryGetNewznabAttribute(item, "booktitle");
|
||||
|
||||
if (!albumString.IsNullOrWhiteSpace())
|
||||
if (!bookString.IsNullOrWhiteSpace())
|
||||
{
|
||||
return albumString;
|
||||
return bookString;
|
||||
}
|
||||
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user