mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
de-normalize item by name data. create counts during library scan for fast access.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
|
||||
using MediaBrowser.Model.Dto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Entities.Audio
|
||||
{
|
||||
/// <summary>
|
||||
@@ -6,6 +9,12 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
/// </summary>
|
||||
public class MusicGenre : BaseItem, IItemByName
|
||||
{
|
||||
public MusicGenre()
|
||||
{
|
||||
ItemCounts = new ItemByNameCounts();
|
||||
UserItemCounts = new Dictionary<Guid, ItemByNameCounts>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user data key.
|
||||
/// </summary>
|
||||
@@ -14,5 +23,9 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
{
|
||||
return "MusicGenre-" + Name;
|
||||
}
|
||||
|
||||
public ItemByNameCounts ItemCounts { get; set; }
|
||||
|
||||
public Dictionary<Guid, ItemByNameCounts> UserItemCounts { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user