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 <noreply@anthropic.com>
This commit is contained in:
Denis
2026-10-26 16:58:14 +01:00
parent 167a4c674b
commit 6bd8cbc822
9 changed files with 89 additions and 19 deletions
+7
View File
@@ -103,6 +103,13 @@ class ParseConfigTest(unittest.TestCase):
with self.assertRaises(ConfigError):
parse_config({"server": {"token": TOKEN}, "media": {"thumbnails": "oui"}})
def test_media_follow_symlinks_switch(self) -> None:
self.assertTrue(parse_config({"server": {"token": TOKEN}}).media_follow_symlinks)
config = parse_config({"server": {"token": TOKEN}, "media": {"follow_symlinks": False}})
self.assertFalse(config.media_follow_symlinks)
with self.assertRaises(ConfigError):
parse_config({"server": {"token": TOKEN}, "media": {"follow_symlinks": "non"}})
def test_max_volume_bounds(self) -> None:
with self.assertRaises(ConfigError):
parse_config({"server": {"token": TOKEN}, "audio": {"max_volume": 3}})