mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-08-13 16:00:06 +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:
|
||||
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:
|
||||
# Handle missing media
|
||||
message.data = "The media is missing"
|
||||
|
||||
Reference in New Issue
Block a user