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/static/%7B%7Bdb.prefix%7D%7D/day?a=commitdiff_plain;h=d56546f65ff6bae804ab6c73df53f1439bf2288e;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)