mirror of
https://github.com/Readarr/Readarr
synced 2026-02-03 21:32:04 +01:00
Fixed: Only pick up supported formats from calibre
This commit is contained in:
parent
fea34add4b
commit
8a7765c855
1 changed files with 5 additions and 1 deletions
|
|
@ -338,7 +338,11 @@ public List<string> GetAllBookFilePaths(CalibreSettings settings)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue