Fixed a bug in how to determine if the volume or series updates cover image. (#857)
This commit is contained in:
parent
65ab5d53ca
commit
3a8a786397
2 changed files with 7 additions and 3 deletions
|
@ -38,11 +38,11 @@ public class CacheHelper : ICacheHelper
|
|||
public bool ShouldUpdateCoverImage(string coverPath, MangaFile firstFile, DateTime chapterCreated, bool forceUpdate = false,
|
||||
bool isCoverLocked = false)
|
||||
{
|
||||
if (firstFile == null) return false;
|
||||
|
||||
var fileExists = !string.IsNullOrEmpty(coverPath) && _fileService.Exists(coverPath);
|
||||
if (isCoverLocked && fileExists) return false;
|
||||
if (forceUpdate) return true;
|
||||
if (firstFile == null) return true;
|
||||
return (_fileService.HasFileBeenModifiedSince(coverPath, chapterCreated)) || !fileExists;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue