mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Various bug fixes (#2938)
* Don't recalculate MD5 if not enabled Remove MD5 if oshash has changed and MD5 was not calculated. * Fix panic in paged DLNA * Prevent identical hashes in stash-box drafts
This commit is contained in:
@@ -84,8 +84,7 @@ func (c *fingerprintCalculator) CalculateFingerprints(f *file.BaseFile, o file.O
|
||||
ret = append(ret, *fp)
|
||||
|
||||
// only calculate MD5 if enabled in config
|
||||
// always re-calculate MD5 if the file already has it
|
||||
calculateMD5 = c.Config.IsCalculateMD5() || f.Fingerprints.For(file.FingerprintTypeMD5) != nil
|
||||
calculateMD5 = c.Config.IsCalculateMD5()
|
||||
}
|
||||
|
||||
if calculateMD5 {
|
||||
|
||||
Reference in New Issue
Block a user