More refactoring around ScannerService. Moved metadata into its own service. Focusing on cleaning up ScanLibrary code to work 100%.
This commit is contained in:
parent
9461b89725
commit
d8d01ffaf6
9 changed files with 211 additions and 80 deletions
18
API/Interfaces/Services/IMetadataService.cs
Normal file
18
API/Interfaces/Services/IMetadataService.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
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>
|
||||
void RefreshMetadata(int libraryId, bool forceUpdate = false);
|
||||
|
||||
public void UpdateMetadata(Chapter chapter, bool forceUpdate);
|
||||
public void UpdateMetadata(Volume volume, bool forceUpdate);
|
||||
public void UpdateMetadata(Series series, bool forceUpdate);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue