The show options in src/settings.yml
can be automatically updated using the included script:
./bin/update_shows
This script:
- Fetches the latest show data from
https://producerplayer.services.pbskids.org/show-tracking
- Creates a backup of the current
settings.yml
file - Updates the
pbs_kids_show_id
field options with the latest shows as key-value pairs (title: slug
) - Sorts shows alphabetically by title
- Saves the updated settings
The script automatically creates a timestamped backup of the original settings file before making changes. Backups are stored in the same directory as the settings file with the format settings.yml.backup.YYYYMMDD_HHMMSS
.
Requirements:
- Ruby (built-in libraries only)
- Internet connection to fetch data from PBS Kids API