mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-05 08:14:21 +00:00
Fixed: Only pick up supported formats from calibre
This commit is contained in:
@@ -338,7 +338,11 @@ namespace NzbDrone.Core.Books.Calibre
|
||||
var response = _httpClient.Get<Dictionary<int, CalibreBook>>(request);
|
||||
foreach (var book in response.Resource.Values)
|
||||
{
|
||||
var remotePath = book?.Formats.Values.OrderBy(f => f.LastModified).FirstOrDefault()?.Path;
|
||||
var remotePath = book?.Formats
|
||||
.Where(x => MediaFileExtensions.TextExtensions.Contains("." + x.Key))
|
||||
.OrderBy(f => f.Value.LastModified)
|
||||
.FirstOrDefault().Value?.Path;
|
||||
|
||||
if (remotePath == null)
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user