Add Locate Audiobooks function (#485)

This commit is contained in:
Mbucari 2023-02-10 09:35:21 -07:00
parent c4acd5d208
commit bba9c2ba7b
16 changed files with 530 additions and 20 deletions

View file

@ -86,7 +86,11 @@ namespace LibationFileManager
public static void Insert(string id, string path)
{
var type = FileTypes.GetFileTypeFromPath(path);
var entry = new CacheEntry(id, type, path);
Insert(new CacheEntry(id, type, path));
}
public static void Insert(CacheEntry entry)
{
cache.Add(entry);
Inserted?.Invoke(null, entry);
save();