From: Christian Heller Date: Thu, 26 Dec 2024 08:33:45 +0000 (+0100) Subject: On purge command, reload playlist, to avoid impossible accesses. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/tasks?a=commitdiff_plain;ds=sidebyside;p=ytplom On purge command, reload playlist, to avoid impossible accesses. --- 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)