Add thumbnails, name search and a title/image in the Playing tab; keep player controls visible

- Thumbnails (ffmpeg, optional): square crops of images, a frame or poster of
  videos, embedded or folder cover of sounds, cached on disk; /thumb route
  protected by the token like /art. [media] thumbnails = false disables it.
- Name search in the Media tab (server side, accents and case ignored, all
  words required, bounded by result count, scanned entries and time).
- Playing tab: title and picture for files of the library (also when the
  player gives none), and a "last opened file" card when no player runs.
- The player controls and the volume bar never leave the visible area:
  sticky controls and height breakpoints; tests/test_ui_layout.py measures
  13 window sizes in a real Chromium driven over DevTools (tests/uidriver.py).
- Static files are served under /static/<version>/ and pages are revalidated,
  so a tablet no longer keeps an old interface from its heuristic cache.
- Documentation (README fr/en, CLAUDE.md, config.example.toml, make deps).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis
2026-10-26 16:28:14 +01:00
parent cd4a8a797b
commit 1de5685338
18 changed files with 1628 additions and 131 deletions
+6
View File
@@ -97,6 +97,12 @@ class ParseConfigTest(unittest.TestCase):
with self.assertRaises(ConfigError):
parse_config({"server": {"token": TOKEN}, "media": []})
def test_media_thumbnails_switch(self) -> None:
self.assertTrue(parse_config({"server": {"token": TOKEN}}).media_thumbnails)
self.assertFalse(parse_config({"server": {"token": TOKEN}, "media": {"thumbnails": False}}).media_thumbnails)
with self.assertRaises(ConfigError):
parse_config({"server": {"token": TOKEN}, "media": {"thumbnails": "oui"}})
def test_max_volume_bounds(self) -> None:
with self.assertRaises(ConfigError):
parse_config({"server": {"token": TOKEN}, "audio": {"max_volume": 3}})