From d56546f65ff6bae804ab6c73df53f1439bf2288e Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 26 Dec 2024 09:33:45 +0100
Subject: [PATCH] On purge command, reload playlist, to avoid impossible
 accesses.

---
 src/ytplom/http.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ytplom/http.py b/src/ytplom/http.py
index aa1b663..a5b9e52 100644
--- a/src/ytplom/http.py
+++ b/src/ytplom/http.py
@@ -148,6 +148,7 @@ class _TaskHandler(BaseHTTPRequestHandler):
     def _purge_deleted_files(self) -> None:
         with DbConn() as conn:
             VideoFile.purge_deleteds(conn)
+            self.server.player.load_files_and_mpv()
             conn.commit()
         self._send_http('OK', code=200)
 
-- 
2.30.2