Include metadata setting in stats

This commit is contained in:
Amelia 2025-07-08 20:42:55 +02:00
parent 5e367418d1
commit 061fb222e6
2 changed files with 5 additions and 0 deletions

View file

@ -22,6 +22,10 @@ public sealed record LibraryStatV3
/// </summary> /// </summary>
public bool CreateReadingListsFromMetadata { get; set; } public bool CreateReadingListsFromMetadata { get; set; }
/// <summary> /// <summary>
/// If the library has metadata turned on
/// </summary>
public bool EnabledMetadata { get; set; }
/// <summary>
/// Type of the Library /// Type of the Library
/// </summary> /// </summary>
public LibraryType LibraryType { get; set; } public LibraryType LibraryType { get; set; }

View file

@ -309,6 +309,7 @@ public class StatsService : IStatsService
libDto.UsingFolderWatching = library.FolderWatching; libDto.UsingFolderWatching = library.FolderWatching;
libDto.CreateCollectionsFromMetadata = library.ManageCollections; libDto.CreateCollectionsFromMetadata = library.ManageCollections;
libDto.CreateReadingListsFromMetadata = library.ManageReadingLists; libDto.CreateReadingListsFromMetadata = library.ManageReadingLists;
libDto.EnabledMetadata = library.EnableMetadata;
libDto.LibraryType = library.Type; libDto.LibraryType = library.Type;
dto.Libraries.Add(libDto); dto.Libraries.Add(libDto);