Skip to content

Commit

Permalink
Fix for
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Nov 19, 2018
1 parent 15acad4 commit cc5d6e8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion TVRename/TVRename/TVDoc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,16 @@ private void ReviewFileInDownloadDirectory(bool unattended, DirFilesCache dfc, L
//File is needed as there are no files for that series/episode
fileCanBeDeleted = false;
}
else foreach (FileInfo existingFile in encumbants)
else {
foreach (FileInfo existingFile in encumbants)
{
if (existingFile.FullName == fi.FullName)
{
//the user has put the search folder and the download folder in the same place - DO NOT DELETE
fileCanBeDeleted = false;
continue;
}

FileHelper.VideoComparison result = FileHelper.BetterQualityFile(existingFile, fi);
switch (result)
{
Expand Down Expand Up @@ -1182,6 +1190,7 @@ private void ReviewFileInDownloadDirectory(bool unattended, DirFilesCache dfc, L
throw new ArgumentOutOfRangeException();
}
}
}
}
catch (SeriesInfo.EpisodeNotFoundException _)
{
Expand Down

0 comments on commit cc5d6e8

Please sign in to comment.