Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Ignore wasari temporary files while checking if episode exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Cordeiro committed Nov 14, 2023
1 parent 09339e5 commit efcca6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wasari.App/GenericDownloadService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private async Task<DownloadedEpisode> DownloadEpisode(WasariEpisode episode, Dow
if (Options.Value.SkipExistingFiles)
{
var files = Directory.GetFiles(outputDirectory, $"{Path.GetFileNameWithoutExtension(fileName)}.*");
var alreadyExists = files.Any();
var alreadyExists = files.Any(x => Path.GetExtension(x) != ".wasari_tmp");

if (alreadyExists)
{
Expand Down

0 comments on commit efcca6e

Please sign in to comment.