public override void Delete() { if (DownloadState == DownloadState.Error || DownloadState == DownloadState.Ready) { return; } try { var title = DownloadHelper.GetLegalPath(Title); var videoFile = VideoFolder.CreateFile(title + VideoExtension); if (videoFile.Exists()) { videoFile.Delete(); } if (MediaType == MediaType.Audio) { var audioFile = DownloadFolder.CreateFile(title + ".mp3"); if (audioFile.Exists()) { audioFile.Delete(); } } } catch { } base.Delete(); UpdateStatus(DownloadState.Deleted); }