Jennifer Academy

Code: Your media library with Jennifer

Code for "Your media library with Jennifer"

The programs behind the slides, for Jennifer 0.26.0. Run everything from this folder. The credentials below are placeholders: they are what the local Jellyfin and the stand-in accept, never real accounts.

Setup

  1. Decks: jvc update resolves the four decks in deck.toml and copies them into vendor/. The MP3 programs need @deckyard/mp3 0.2.0 or newer: 0.1.0 calls encoding.decode in the argument order of Jennifer 0.25 and fails on 0.26.0.

  2. Media: ./make-media.sh (needs ffmpeg) generates music/ (four MP3s with messy tags and a cover.png) and jellyfin/movies/ (four 4-second test-pattern films with NFO files). Everything is generated; nothing is copyrighted.

  3. Jellyfin, after tidying the music (see below):

    mkdir -p "jellyfin/music/Test Tones" && cp music/*.mp3 "jellyfin/music/Test Tones/"
    docker run -d --name academy-media-jellyfin -p 127.0.0.1:18096:8096 \
      -v "$PWD/jellyfin/movies:/media/movies:ro" \
      -v "$PWD/jellyfin/music:/media/music:ro" jellyfin/jellyfin
    ./setup-jellyfin.sh

    setup-jellyfin.sh finishes the first-run wizard (user jen, password change-me-please) and adds the libraries Movies and Music with every internet metadata fetcher off, so the server reads only the local files. Remove it afterwards with docker rm -f academy-media-jellyfin.

  4. TMDB and Steam: run-offline.sh (needs openssl, and pasta from the passt package, plus unprivileged user namespaces) starts fakeapi.j, a local HTTPS stand-in with invented films and games, in a private namespace where api.themoviedb.org, api.steampowered.com and store.steampowered.com resolve to 127.0.0.1 and only a throwaway test CA is trusted. The decks run unchanged and nothing reaches the real services. Port 18096 is forwarded into the namespace for Jellyfin.

Programs

ProgramSlidesRun
peek.jA folder of messy MP3sjennifer run peek.j music
fix-one.jFixing one filejennifer run fix-one.j (on fresh media)
tidy.jCover art, the batch tool, dry runjennifer run tidy.j --dir music --artist "The Jennifers" --album "Test Tones" [--write]
cover.jCover art is just bytesjennifer run cover.j "music/01 - Sine At Dawn.mp3" (after --write)
report.jA report and a playlistjennifer run report.j music
jf-hello.jJellyfin server, signing inJELLYFIN_PASSWORD=change-me-please jennifer run jf-hello.j
jf-key.jAn API keyJELLYFIN_PASSWORD=change-me-please jennifer run jf-key.j
jf-scan.jA library scanJELLYFIN_KEY=<the key from the dashboard> jennifer run jf-scan.j
jf-browse.jSearch, unwatched filmsJELLYFIN_PASSWORD=change-me-please jennifer run jf-browse.j
tmdb-search.jTMDB, errorsTMDB_ACCESS_TOKEN=placeholder-tmdb-token ./run-offline.sh jennifer run tmdb-search.j
steam-shame.jThe pile of shameSTEAM_API_KEY=PLACEHOLDER-STEAM-KEY ./run-offline.sh jennifer run steam-shame.j
tonight.jThe projectJELLYFIN_PASSWORD=change-me-please TMDB_ACCESS_TOKEN=placeholder-tmdb-token STEAM_API_KEY=PLACEHOLDER-STEAM-KEY ./run-offline.sh jennifer run tonight.j --minutes 100 [--mark]
fakeapi.jTesting without the internetstarted by run-offline.sh

A wrong TMDB_ACCESS_TOKEN shows the TmdbError of the errors slide; with --minutes 80 no film fits and tonight.j suggests a game instead. jf-key.j prints only the start of the new key; copy the whole key from the Jellyfin dashboard (API Keys) into JELLYFIN_KEY.

FileSize
LICENSE899 Braw
README.md3.5 KiBraw
cover.j465 Braw
deck.toml524 Braw
fakeapi.j5.7 KiBraw
fix-one.j480 Braw
jf-browse.j787 Braw
jf-hello.j738 Braw
jf-key.j841 Braw
jf-scan.j833 Braw
make-media.sh2.1 KiBraw
peek.j555 Braw
report.j1.0 KiBraw
run-offline.sh1.6 KiBraw
setup-jellyfin.sh1.9 KiBraw
steam-shame.j945 Braw
tidy.j2.5 KiBraw
tmdb-search.j645 Braw
tonight.j2.9 KiBraw