It should be possible to provide a configuration file which will limit series selection - either via an explicit allowlist or by blocklisting.
This was on the cards anyway, but a test run just started playing back an episode of Prison School - probably not something I want to be streaming round the house
Activity
03-Aug-24 14:22
assigned to @btasker
03-Aug-24 15:29
The system now supports exposing an allowlist at
/app/allowlist.txt
That file should be a text file containing a list of series/presentation names (one per line). The values should basically be the directory names as they're used inside
$MEDIA_DIR
The publish script basically just echoes those rather than doing a
ls -1
03-Aug-24 15:57
The blocklist should be provided at
/app/blocklist.txt
The entries provided are collapsed into an OR regex (with each line being one possibility), so providing
Will result in options being filtered with something like
Filters are applied to both presentation and episode names: so the above would filter out both
Big_Buck_Bunny/episode1.mp4
anddocumentaries/the_making_of_Big_Buck_Bunny
.I suspect I'll end up wanting to refine that, but it'll do as a start point
03-Aug-24 15:57
Dunno why I hit close on this earlier, but it's done now anyway
04-Aug-24 09:14
mentioned in commit github-mirror/Home-TV-Station@d9e7c9c46dc79025faec0148b760d786ca58ce4a
Message
feat: add support for a blocklist (project-management-only/home-tv-station#3)
04-Aug-24 09:14
mentioned in commit github-mirror/Home-TV-Station@e0c4daaa78c0efefc9b1bb2081a2d77085ccb8c5
Message
feat: implement support for an allowlist (project-management-only/home-tv-station#3)