mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-23 15:30:34 -04:00
* Added trackby so when series scan event comes through, cards can update too * Added chapter boundary toasts on book reader * Handle closing the reader when in a reading list * Somehow the trackby save didn't happen * Fixed an issue where after opening a chapter info modal, then trying to open another in specials tab it would fail due to a pass by reference issue with our factory. * When a series update occurs, if we loose specials tab, but we were on it, reselect volumes/chapters tab * Fixed an issue where older releases would show as available, even though they were already installed. * Converted tabs within modals to use vertical orientation (except on mobile) * Implemented webp support. Only Safari does not support this format natively. MacOS users can use an alternative browser. * Refactored ScannerService and MetadataService to be fully async
26 lines
947 B
C#
26 lines
947 B
C#
using System.Threading.Tasks;
|
|
using API.Entities;
|
|
|
|
namespace API.Interfaces.Services
|
|
{
|
|
public interface IMetadataService
|
|
{
|
|
/// <summary>
|
|
/// Recalculates metadata for all entities in a library.
|
|
/// </summary>
|
|
/// <param name="libraryId"></param>
|
|
/// <param name="forceUpdate"></param>
|
|
Task RefreshMetadata(int libraryId, bool forceUpdate = false);
|
|
|
|
public bool UpdateMetadata(Chapter chapter, bool forceUpdate);
|
|
public bool UpdateMetadata(Volume volume, bool forceUpdate);
|
|
public bool UpdateMetadata(Series series, bool forceUpdate);
|
|
/// <summary>
|
|
/// Performs a forced refresh of metatdata just for a series and it's nested entities
|
|
/// </summary>
|
|
/// <param name="libraryId"></param>
|
|
/// <param name="seriesId"></param>
|
|
Task RefreshMetadataForSeries(int libraryId, int seriesId, bool forceUpdate = false);
|
|
}
|
|
}
|