diff --git a/UwuRadio.Server/Services/DownloadService.cs b/UwuRadio.Server/Services/DownloadService.cs index f6107b8..e6cd8bc 100644 --- a/UwuRadio.Server/Services/DownloadService.cs +++ b/UwuRadio.Server/Services/DownloadService.cs @@ -10,7 +10,7 @@ public record SongFileInfo(FileInfo File, string Md5, Duration Length); /// /// This service downloads songs when required and keeps track of them on disk /// -public class DownloadService : IDisposable +public class DownloadService { private readonly Queue _downloadQueue = new(); private readonly Dictionary _fileInfos = new(); @@ -20,8 +20,6 @@ public class DownloadService : IDisposable public DownloadService() { Directory.CreateDirectory(Constants.C.CacheFolder); } - public void Dispose() => Directory.Delete(Constants.C.CacheFolder, true); - public bool IsBlacklisted(Song song) => _downloadBlacklist.Contains(song.Id); public void EnsureDownloaded(Song song)