home · contact · privacy
On purge command, reload playlist, to avoid impossible accesses.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 26 Dec 2024 08:33:45 +0000 (09:33 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 26 Dec 2024 08:33:45 +0000 (09:33 +0100)
src/ytplom/http.py

index aa1b6630f13a43623fbe57d217db8ff982769163..a5b9e52a1c91a84308e578fdf00f944aca94e1ea 100644 (file)
@@ -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)