Release Shakeout (#1266)
* Fixed an issue with fit to screen where spread images would fail to generate a paging area long enough. * Fixed pagination placement on original scaling * Fixed an issue with webtoon reader not reporting scroll events due to a fix from manga reader. * Fixing select on black book-reader theme * Fixing canvas split centering * Fixed a bug with white mode in book reader not rendering correctly. When bookmarking new pages after previously have viewing bookmarks for a series, ensure we clear out the temp cache else your new files wont be visible till next day. * Use grid on related tab * Clear bookmarks was not hooked up. Bulk add to collection didn't have label hidden * Fixed bug where filter might stay open between pages * Fixed typo on relationship for Adaptation * Contains was missing from series relation modal * Tweaked some methods and wording on reading list page * Cleaned up the phrasing when we abort a scan. * Fixed issue where typeahead wasn't reopening and it wasn't filtering selected options * Fixed some typeahead bugs and decreased interval for docker health check * Cleaned up and fixed some logic with receiving cover image update events Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
49d8a7c6ca
commit
a062341564
26 changed files with 90 additions and 144 deletions
|
|
@ -32,6 +32,7 @@ namespace API.Services
|
|||
string GetCachedEpubFile(int chapterId, Chapter chapter);
|
||||
public void ExtractChapterFiles(string extractPath, IReadOnlyList<MangaFile> files);
|
||||
Task<int> CacheBookmarkForSeries(int userId, int seriesId);
|
||||
void CleanupBookmarkCache(int bookmarkDtoSeriesId);
|
||||
}
|
||||
public class CacheService : ICacheService
|
||||
{
|
||||
|
|
@ -240,5 +241,17 @@ namespace API.Services
|
|||
_directoryService.Flatten(destDirectory);
|
||||
return files.Count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears a cached bookmarks for a series id folder
|
||||
/// </summary>
|
||||
/// <param name="seriesId"></param>
|
||||
public void CleanupBookmarkCache(int seriesId)
|
||||
{
|
||||
var destDirectory = _directoryService.FileSystem.Path.Join(_directoryService.CacheDirectory, seriesId + "_bookmarks");
|
||||
if (!_directoryService.Exists(destDirectory)) return;
|
||||
|
||||
_directoryService.ClearAndDeleteDirectory(destDirectory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue