Skip to content

Commit

Permalink
Merge pull request #1 from toczekmj/fix-files-not-skipping
Browse files Browse the repository at this point in the history
Fix regarding files not being skipped, even tho the checkbox is ticked.
  • Loading branch information
toczekmj authored May 26, 2024
2 parents 75417b2 + 1634d3e commit 8186e29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion YoutubePlaylistDownloader/DownloadPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8186e29

Please sign in to comment.