home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007991c
)
On purge command, reload playlist, to avoid impossible accesses.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 26 Dec 2024 08:33:45 +0000
(09:33 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 26 Dec 2024 08:33:45 +0000
(09:33 +0100)
src/ytplom/http.py
patch
|
blob
|
history
diff --git
a/src/ytplom/http.py
b/src/ytplom/http.py
index aa1b6630f13a43623fbe57d217db8ff982769163..a5b9e52a1c91a84308e578fdf00f944aca94e1ea 100644
(file)
--- 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)