From 6bd8cbc8227ce5e8fa6a0490331a7158696c2cf1 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 26 Oct 2026 16:58:14 +0100 Subject: [PATCH] Add [media] follow_symlinks and list make qr in the quick start follow_symlinks (default true) keeps the new behaviour of following links wherever they point; false restores the strict rule: only links whose target stays inside the configured folder are followed, the search does not walk linked folders, no picture is taken from outside the root and players are not matched to a library file through a link. The README (fr/en) quick start now lists `make qr`, next to `make url`. Co-Authored-By: Claude Sonnet 5.5 --- CLAUDE.md | 2 +- README-EN.md | 3 ++- README.md | 3 ++- config.example.toml | 3 +++ mediadeck/config.py | 10 +++++++++ mediadeck/media.py | 53 +++++++++++++++++++++++++++++++------------- mediadeck/server.py | 4 +++- tests/test_config.py | 7 ++++++ tests/test_media.py | 23 +++++++++++++++++++ 9 files changed, 89 insertions(+), 19 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 979eb97..f1aaf42 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -147,7 +147,7 @@ La pochette locale (`file://`) n'est jamais transmise : elle est remplacée par - **Page des QR codes = fichier local, jamais une route du serveur** (`make qr`, `--qr`, module `qrpage.py`) : les QR codes contiennent le jeton, une route `/qr` le donnerait à tout le LAN (même limitée à la boucle locale, elle serait fragile derrière un proxy). Page autonome écrite en 600 dans `$XDG_RUNTIME_DIR/mediadeck/access.html` (tmpfs) et ouverte en `file://` : pas de CSP à contourner (`