More Fun in Core with Naming

This commit is contained in:
Qstick
2020-05-18 23:28:26 -04:00
committed by ta264
parent b0e966418e
commit 307989aab7
122 changed files with 1084 additions and 1198 deletions
+3 -3
View File
@@ -52,9 +52,9 @@ namespace Readarr.Api.V1.Indexers
private object DownloadRelease(ReleaseResource release)
{
var remoteAlbum = _remoteBookCache.Find(GetCacheKey(release));
var remoteBook = _remoteBookCache.Find(GetCacheKey(release));
if (remoteAlbum == null)
if (remoteBook == null)
{
_logger.Debug("Couldn't find requested release in cache, cache timeout probably expired.");
@@ -63,7 +63,7 @@ namespace Readarr.Api.V1.Indexers
try
{
_downloadService.DownloadReport(remoteAlbum);
_downloadService.DownloadReport(remoteBook);
}
catch (ReleaseDownloadException ex)
{
+8 -8
View File
@@ -19,23 +19,23 @@ namespace Readarr.Api.V1.Parse
private ParseResource Parse()
{
var title = Request.Query.Title.Value as string;
var parsedAlbumInfo = Parser.ParseBookTitle(title);
var parsedBookInfo = Parser.ParseBookTitle(title);
if (parsedAlbumInfo == null)
if (parsedBookInfo == null)
{
return null;
}
var remoteAlbum = _parsingService.Map(parsedAlbumInfo);
var remoteBook = _parsingService.Map(parsedBookInfo);
if (remoteAlbum != null)
if (remoteBook != null)
{
return new ParseResource
{
Title = title,
ParsedBookInfo = remoteAlbum.ParsedBookInfo,
Author = remoteAlbum.Author.ToResource(),
Books = remoteAlbum.Books.ToResource()
ParsedBookInfo = remoteBook.ParsedBookInfo,
Author = remoteBook.Author.ToResource(),
Books = remoteBook.Books.ToResource()
};
}
else
@@ -43,7 +43,7 @@ namespace Readarr.Api.V1.Parse
return new ParseResource
{
Title = title,
ParsedBookInfo = parsedAlbumInfo
ParsedBookInfo = parsedBookInfo
};
}
}