From 1634d3e6e952eab91e4aee0e16fb6c3cc09fe620 Mon Sep 17 00:00:00 2001 From: toczekmj Date: Sun, 26 May 2024 13:54:19 +0200 Subject: [PATCH] Fix regarding files not being skipped, even tho the checkbox is ticked. --- YoutubePlaylistDownloader/DownloadPage.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/YoutubePlaylistDownloader/DownloadPage.xaml.cs b/YoutubePlaylistDownloader/DownloadPage.xaml.cs index 31f360f..1dbdad8 100644 --- a/YoutubePlaylistDownloader/DownloadPage.xaml.cs +++ b/YoutubePlaylistDownloader/DownloadPage.xaml.cs @@ -310,8 +310,11 @@ await Dispatcher.InvokeAsync(() => var outputFileLoc = $"{GlobalConsts.TempFolderPath}{cleanFileNameWithID}.{FileType}"; var copyFileLoc = $"{SavePath}\\{cleanFileName}.{FileType}"; + + var taggedFileName = await GlobalConsts.TagFile(video, indexes[video], outputFileLoc, Playlist); + var taggedFilePath = $"{SavePath}\\{taggedFileName}.{FileType}"; - if (GlobalConsts.DownloadSettings.SkipExisting && File.Exists(copyFileLoc)) + if (GlobalConsts.DownloadSettings.SkipExisting && (File.Exists(copyFileLoc) || File.Exists(taggedFilePath))) { CurrentStatus = string.Concat(FindResource("Skipping")); CurrentTitle = video.Title;