feat(insights): add file suffix counting

This commit is contained in:
Deluan
2026-01-18 17:00:35 -05:00
parent 2de2484bca
commit 0473c50b49
5 changed files with 63 additions and 0 deletions
+4
View File
@@ -265,6 +265,10 @@ func (c *insightsCollector) collect(ctx context.Context) []byte {
if err != nil {
log.Trace(ctx, "Error reading active users count", err)
}
data.Library.FileSuffixes, err = c.ds.MediaFile(ctx).CountBySuffix()
if err != nil {
log.Trace(ctx, "Error reading file suffixes count", err)
}
// Check for smart playlists
data.Config.HasSmartPlaylists, err = c.hasSmartPlaylists(ctx)