mirror of
https://github.com/deunix-educ/mediadeck.git
synced 2026-11-25 04:39:42 +01:00
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:
@@ -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}})
|
||||
|
||||
Reference in New Issue
Block a user