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
|
|
@ -20,7 +20,6 @@ public interface IReaderService
|
|||
Task<int> CapPageToChapter(int chapterId, int page);
|
||||
Task<int> GetNextChapterIdAsync(int seriesId, int volumeId, int currentChapterId, int userId);
|
||||
Task<int> GetPrevChapterIdAsync(int seriesId, int volumeId, int currentChapterId, int userId);
|
||||
//Task<string> BookmarkFile();
|
||||
}
|
||||
|
||||
public class ReaderService : IReaderService
|
||||
|
|
@ -310,16 +309,6 @@ public class ReaderService : IReaderService
|
|||
return -1;
|
||||
}
|
||||
|
||||
// public async Task<string> BookmarkFile()
|
||||
// {
|
||||
// var chapter = await _cacheService.Ensure(bookmarkDto.ChapterId);
|
||||
// if (chapter == null) return string.Empty;
|
||||
// var path = _cacheService.GetCachedPagePath(chapter, bookmarkDto.Page);
|
||||
// var fileInfo = new FileInfo(path);
|
||||
//
|
||||
// return _directoryService.CopyFileToDirectory(path, Path.Join(_directoryService.BookmarkDirectory,
|
||||
// $"{user.Id}", $"{bookmarkDto.SeriesId}"));
|
||||
// }
|
||||
|
||||
private static int GetNextChapterId(IEnumerable<ChapterDto> chapters, string currentChapterNumber)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue