mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-05-22 16:59:13 +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 no timestamp available, just copy
|
||||||
if timestamp is None:
|
if timestamp is None:
|
||||||
logger.warning(f"No timestamp available for {source_path}, skipping timestamp operations")
|
if source_path != dest_path:
|
||||||
shutil.copy2(source_path, dest_path)
|
logger.warning(f"No timestamp available for {source_path}, skipping timestamp operations")
|
||||||
return dest_path
|
shutil.copy2(source_path, dest_path)
|
||||||
|
return dest_path
|
||||||
|
|
||||||
# Determine final path
|
# Determine final path
|
||||||
final_path = dest_path
|
final_path = dest_path
|
||||||
|
|||||||
Reference in New Issue
Block a user