Misc Fixes and Changes (#927)
* Cleaned up a ton of warnings/suggestions from the IDE. * Fixed a bug when clearing the filters some presets could be undone. * Renamed a class in the OPDS spec * Simplified logic for when Fit To Screen rendering logic occurs. It now works always rather than only on cover images. * Give some additional info to the user on what the differences between Library Types are * Don't scan .qpkg folders (QNAP devices) * Refactored some code to enable ability to test CoverImage Test. This is a broken test, test.zip is waiting on an issue in NetVips. * Fixed an issue where Extra might get flagged as special too early, if in a word like Extraordinary * Cleaned up the regex for the extra issue to be more flexible
This commit is contained in:
parent
6afc17e93e
commit
fb71d54fe6
30 changed files with 162 additions and 361 deletions
|
|
@ -171,7 +171,10 @@ namespace API.Services
|
|||
var path = GetCachePath(chapter.Id);
|
||||
var files = _directoryService.GetFilesWithExtension(path, Parser.Parser.ImageFileExtensions);
|
||||
using var nc = new NaturalSortComparer();
|
||||
files = files.ToList().OrderBy(Path.GetFileNameWithoutExtension, nc).ToArray();
|
||||
files = files
|
||||
.AsEnumerable()
|
||||
.OrderBy(Path.GetFileNameWithoutExtension, nc)
|
||||
.ToArray();
|
||||
|
||||
|
||||
if (files.Length == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue