updated version

This commit is contained in:
2025-09-08 15:46:59 +03:00
parent 5063b47a56
commit 185f3099ad
10 changed files with 195 additions and 16 deletions

View File

@@ -66,6 +66,12 @@ class SimpleTkPlayer:
print(f"[CONFIG] Error getting playlist version: {e}")
return None
def update_playlist_version(self):
"""Update the current playlist version - call when playlist changes"""
self.playlist_version = self.get_current_playlist_version()
print(f"[CONFIG] Updated playlist version to: {self.playlist_version}")
return self.playlist_version
def send_error_feedback(self, error_message):
"""Send error feedback to server"""
try:
@@ -421,6 +427,8 @@ class SimpleTkPlayer:
if new_playlist:
self.playlist = new_playlist
self.current_index = 0
# Update playlist version after reloading
self.update_playlist_version()
print("[PLAYER] Playlist reloaded. Continuing playback.")
self.show_current_media()
else: