Skip to content

Import/export tools for migration #229

@filthyrake

Description

@filthyrake

Summary

Add tools to import videos from other platforms and export VLog data.

Current State

  • YouTube download exists (via yt-dlp in CLI)
  • No structured import/export system
  • No migration tools

Proposed Features

Import Sources

  • YouTube/Vimeo: Already have yt-dlp, formalize as import
  • Local directory: Bulk import from folder with metadata
  • CSV/JSON: Import with metadata mapping
  • Other platforms: Extensible import adapters

Export Options

  • Metadata export: CSV/JSON of video metadata
  • Analytics export: View/engagement data
  • Full backup: Database + files for migration
  • Platform-specific: Export for external systems

CLI Commands

vlog import youtube "https://youtube.com/playlist?list=..."
vlog import directory /path/to/videos --metadata videos.csv
vlog import csv videos.csv --video-path /path/to/videos

vlog export metadata --format json > videos.json
vlog export analytics --start 2024-01-01 --end 2024-12-31
vlog export full /path/to/backup

API Endpoints

POST /admin/import/url
POST /admin/import/upload  # Bulk upload with metadata
GET  /admin/export/metadata
GET  /admin/export/analytics

Metadata CSV Format

filename,title,description,category,tags
video1.mp4,First Video,Description here,Tutorials,python;beginner
video2.mp4,Second Video,Another description,Demos,demo;product

Priority

Medium - useful for onboarding and backup

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions