How s16h/py-must-watch works
This is a small curated-video website: visitors load the catalog, choose a talk, and watch it in an embedded YouTube player. A separate Python utility can add YouTube durations to a supplied text file. The runtime links are supported by the controller and player scripts; the README documents the curated-talk purpose. The HTML, CSS, and catalog contents were not sampled, so their detailed wiring is not asserted.
Main entry points: youtube.js Embedded player · controller.js Video controller · add_youtube_durations.py Duration updater · scripts.js Player UI events
Components 11
Video website
- Catalog page
index.html - Page styles
static/css/styles.css - Video catalog
videos.json - Video controller
static/js/controller.js - Player UI events
static/js/scripts.js
YouTube playback
- Embedded player
static/js/youtube.js - YouTube
Catalog maintenance
- Duration updater
add_youtube_durations.py - YouTube Data API
- Duration input file
Other components
- Visitor
Connections 8
- Visitor → Catalog page: opens
README.md - Video controller → Video catalog: loads
static/js/controller.js - Video controller → Embedded player: loads video
static/js/controller.js - Player UI events → Embedded player: stops and resizes
static/js/scripts.js - Embedded player → Player UI events: uses sizing
static/js/youtube.js - Embedded player → YouTube: embeds
static/js/youtube.js - Duration updater → YouTube Data API: requests duration
add_youtube_durations.py - Duration updater → Duration input file: updates
add_youtube_durations.py