mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-03-29 09:15:27 +00:00
Avoid self-copy when no timestamp
This commit is contained in:
@@ -176,9 +176,10 @@ def process_media_with_timestamp(
|
||||
"""
|
||||
# If no timestamp available, just copy
|
||||
if timestamp is None:
|
||||
logger.warning(f"No timestamp available for {source_path}, skipping timestamp operations")
|
||||
shutil.copy2(source_path, dest_path)
|
||||
return dest_path
|
||||
if source_path != dest_path:
|
||||
logger.warning(f"No timestamp available for {source_path}, skipping timestamp operations")
|
||||
shutil.copy2(source_path, dest_path)
|
||||
return dest_path
|
||||
|
||||
# Determine final path
|
||||
final_path = dest_path
|
||||
|
||||
Reference in New Issue
Block a user