windows updaate

This commit is contained in:
Nate Emmert committed 2025-11-17 08:22:25 -05:00
1 parent ce5175d8db
commit c2b91f3f47
2 files changed
+16 -4

No files matched your search

+14
View File
@@ -359,6 +359,13 @@ class MainWindow(QMainWindow):
self.last_update_label.setText(f"Last update: {datetime.now().strftime('%Y-%m-%d %I:%M:%S %p')}")
self.status_label.setText("Ready")
# Append result to log file
try:
with open('playlist_log.txt', 'a', encoding='utf-8') as f:
f.write(result + '\n')
except Exception as e:
print(f"Error writing to log: {e}")
# Refresh logs
self.log_viewer.refresh_logs()
@@ -386,6 +393,13 @@ class MainWindow(QMainWindow):
"""Handle automatic update completion"""
self.last_update_label.setText(f"Last update: {datetime.now().strftime('%Y-%m-%d %I:%M:%S %p')}")
# Append result to log file
try:
with open('playlist_log.txt', 'a', encoding='utf-8') as f:
f.write(result + '\n')
except Exception as e:
print(f"Error writing to log: {e}")
# Refresh logs
self.log_viewer.refresh_logs()