[Enhance] Add an option about file hash pre-calc

- Add an option to disable song file hash pre-calculation
This commit is contained in:
Lost-MSth
2023-01-14 18:32:53 +08:00
parent af03a48134
commit 9c90d6ef89
5 changed files with 21 additions and 13 deletions

View File

@@ -286,6 +286,8 @@ class FileChecker:
self.logger.info("Start to initialize song data...")
try:
DownloadList.initialize_cache()
if not Config.SONG_FILE_HASH_PRE_CALCULATE:
self.logger.info('Song file hash pre-calculate is disabled.')
self.logger.info('Complete!')
except Exception as e:
self.logger.error(format_exc())