mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
More Fun in Core with Naming
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user