project-management-only/home-tv-station#3: Series Allow/Block list



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 03-Aug-24 14:22



Description

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



Toggle State Changes

Activity


assigned to @btasker

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

Big_Buck_Bunny
Acme_The_Human_Carrot

The publish script basically just echoes those rather than doing a ls -1

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

Big_Buck_Bunny
Acme_The_Human_Carrot

Will result in options being filtered with something like

egrep -v -e '(Big_Buck_Bunny|Acme_The_Human_Carrot)'

Filters are applied to both presentation and episode names: so the above would filter out both Big_Buck_Bunny/episode1.mp4 and documentaries/the_making_of_Big_Buck_Bunny.

I suspect I'll end up wanting to refine that, but it'll do as a start point

Dunno why I hit close on this earlier, but it's done now anyway

verified

mentioned in commit github-mirror/Home-TV-Station@d9e7c9c46dc79025faec0148b760d786ca58ce4a

Commit: github-mirror/Home-TV-Station@d9e7c9c46dc79025faec0148b760d786ca58ce4a 
Author: B Tasker                            
                            
Date: 2024-08-03T16:56:05.000+01:00 

Message

feat: add support for a blocklist (project-management-only/home-tv-station#3)

+62 -3 (65 lines changed)
verified

mentioned in commit github-mirror/Home-TV-Station@e0c4daaa78c0efefc9b1bb2081a2d77085ccb8c5

Commit: github-mirror/Home-TV-Station@e0c4daaa78c0efefc9b1bb2081a2d77085ccb8c5 
Author: B Tasker                            
                            
Date: 2024-08-03T16:27:22.000+01:00 

Message

feat: implement support for an allowlist (project-management-only/home-tv-station#3)

+65 -1 (66 lines changed)