Added logic for tags and audio engine.

This commit is contained in:
2025-02-20 00:01:07 -05:00
parent 2bafd474a0
commit f8cda3105a
20 changed files with 316 additions and 10 deletions

View File

@@ -1,22 +0,0 @@
using Harmonia.Core.Models;
namespace Harmonia.Core.Data;
public class PlaylistRepository : JsonFileRepository<Playlist>
{
protected override string DirectoryName => string.Empty;
protected override string GetNewFileName()
{
for (int i = 0; i < 1000; i++)
{
string shortFileName = $"Playlist{i.ToString().PadLeft(3, '0')}.{Extension}";
string filePath = Path.Combine(DirectoryName, shortFileName);
if (File.Exists(filePath) == false)
return shortFileName;
}
throw new Exception("Unable to determine new fileName");
}
}