Scan Issues (#470)

* Fixed an oversight where unique file extensions for KavitaStats wouldn't ignore case.

* Fixed an issue where series were getting removed then re-added due to bad logic when comparing if the series from disk matched the series in DB based on format.
This commit is contained in:
Joseph Milazzo 2021-08-10 19:05:16 -05:00 committed by GitHub
parent 7e36c56416
commit 9c57984bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 8 deletions

View file

@ -20,7 +20,7 @@ namespace API.Data
{
var fileExtensions = await _dbContext.MangaFile
.AsNoTracking()
.Select(x => x.FilePath)
.Select(x => x.FilePath.ToLower())
.Distinct()
.ToArrayAsync();
@ -32,4 +32,4 @@ namespace API.Data
return uniqueFileTypes;
}
}
}
}