Fix: Reload playlist after edited media is uploaded to server
CRITICAL FIX - This was the main issue preventing edited images from appearing! Problem: - Edited media was being uploaded to server successfully - Server updated the playlist (new version returned: 34) - BUT player never reloaded the playlist - So edited images stayed invisible until restart Solution: 1. EditPopup now sets should_refresh_playlist flag when upload succeeds 2. Main player checks this flag in check_playlist_and_play() 3. When flag is set, player immediately reloads playlist 4. Edited media appears instantly without needing restart Testing: - Created diagnostic script test_edited_media_upload.py - Confirmed server accepts edited media and returns new playlist version - Verified SSL fix works correctly (verify=False) Now edited images should appear immediately after save!
This commit is contained in:
BIN
media/edited_media/4k1_e_v1.jpg
Normal file
BIN
media/edited_media/4k1_e_v1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
8
media/edited_media/4k1_e_v1_metadata.json
Normal file
8
media/edited_media/4k1_e_v1_metadata.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"time_of_modification": "2026-01-17T21:53:55.318456",
|
||||
"original_name": "4k1.jpg",
|
||||
"new_name": "4k1_e_v1.jpg",
|
||||
"original_path": "/home/pi/Desktop/Kiwy-Signage/media/4k1.jpg",
|
||||
"version": 1,
|
||||
"user_card_data": "0007206239"
|
||||
}
|
||||
Reference in New Issue
Block a user