diff --git a/src/tools/sync_filename.py b/src/tools/sync_filename.py index 9f63aa0..a47edec 100644 --- a/src/tools/sync_filename.py +++ b/src/tools/sync_filename.py @@ -108,7 +108,7 @@ def sync_whisper_to_stash(whisper_db_path, stash_db_path, dir_prefix, studio_fil # 在whisper数据中查找匹配项 matched = False for whisper_code, whisper_row in idx_whisper.items(): - if whisper_code and basename and str(whisper_code) in basename: + if whisper_code and basename and str(whisper_code).lower() in basename.lower(): # 找到匹配项,更新stash数据库 matched = True matched_cnt += 1