Skip to content

Add Bunny CDN integration for video hosting #23

@madjin

Description

@madjin

Summary

Implement Bunny CDN integration to replace/supplement YouTube for video hosting.

Implementation Status

  • Created scripts/upload_to_cdn.py - Python script for Bunny CDN uploads
  • Updated GitHub Actions workflow to upload to CDN
  • Configure Bunny CDN secrets in GitHub repository
  • Test full workflow with production credentials

New Scripts

  • scripts/upload_to_cdn.py - Upload videos/metadata to Bunny CDN
  • scripts/fetch_episodes.py - Fetch and sync episode list from Shmotime API

Environment Variables Needed

  • BUNNY_STORAGE_ZONE - Storage zone name
  • BUNNY_STORAGE_PASSWORD - Storage zone API password
  • BUNNY_CDN_URL - CDN URL (optional, defaults to https://{zone}.b-cdn.net)

Usage

# Dry run upload
python scripts/upload_to_cdn.py --dry-run --file recordings/episode.mp4 --remote the-council/

# Upload directory
python scripts/upload_to_cdn.py --dir recordings/ --remote the-council/ --pattern "*.mp4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions