mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-08-22 04:00:27 +02:00
fix a crash where os.sep is different from the slash in final_path
This commit is contained in:
@@ -506,7 +506,7 @@ def process_media_item(content, data, media_folder, mime, separate_media, fix_do
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
final_path = file_path
|
final_path = file_path
|
||||||
message.data = os.path.join(*final_path.split(os.sep)[1:])
|
message.data = os.path.join(*Path(final_path).parts[1:])
|
||||||
else:
|
else:
|
||||||
# Handle missing media
|
# Handle missing media
|
||||||
message.data = "The media is missing"
|
message.data = "The media is missing"
|
||||||
|
|||||||
Reference in New Issue
Block a user