mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
Cleanup Conflicts in Sonarr/Lidarr Pulls
Co-Authored-By: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com>
This commit is contained in:
@@ -81,7 +81,7 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
else
|
||||
{
|
||||
// try parsing fuzzy
|
||||
parsedBookInfo = _parsingService.ParseAlbumTitleFuzzy(report.Title);
|
||||
parsedBookInfo = _parsingService.ParseBookTitleFuzzy(report.Title);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,23 +156,23 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
|
||||
if (searchCriteria != null)
|
||||
{
|
||||
if (parsedAlbumInfo == null)
|
||||
if (parsedBookInfo == null)
|
||||
{
|
||||
parsedAlbumInfo = new ParsedAlbumInfo
|
||||
parsedBookInfo = new ParsedBookInfo
|
||||
{
|
||||
Quality = QualityParser.ParseQuality(report.Title, null, 0)
|
||||
Quality = QualityParser.ParseQuality(report.Title, null)
|
||||
};
|
||||
}
|
||||
|
||||
if (parsedAlbumInfo.ArtistName.IsNullOrWhiteSpace())
|
||||
if (parsedBookInfo.AuthorName.IsNullOrWhiteSpace())
|
||||
{
|
||||
var remoteAlbum = new RemoteAlbum
|
||||
var remoteBook = new RemoteBook
|
||||
{
|
||||
Release = report,
|
||||
ParsedAlbumInfo = parsedAlbumInfo
|
||||
ParsedBookInfo = parsedBookInfo
|
||||
};
|
||||
|
||||
decision = new DownloadDecision(remoteAlbum, new Rejection("Unable to parse release"));
|
||||
decision = new DownloadDecision(remoteBook, new Rejection("Unable to parse release"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user