Skip to content

Commit

Permalink
Fix issue #538 Long scan times from additional HTTP requests
Browse files Browse the repository at this point in the history
- For embedded photos it only checked the current index file for duplicates.
- Now all index files and archives are checked, if enabled.
  • Loading branch information
thomas694 committed Jul 3, 2024
1 parent 3ae6760 commit 265cd04
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ protected void OnSaveTimedEvent(IProgress<Exception> progress)
public virtual bool CheckIfPostedUrlIsDownloaded(string url)
{
var filenameUrl = url.Split('/').Last();
if (shellService.Settings.LoadAllDatabases)
{
return managerService.CheckIfFileExistsInDB(filenameUrl, true, shellService.Settings.LoadArchive);
}
return files.CheckIfFileExistsInDB(filenameUrl, true);
}

Expand Down

0 comments on commit 265cd04

Please sign in to comment.