Skip to content

Instantly share code, notes, and snippets.

@paulschick
Created December 18, 2023 18:12
Show Gist options
  • Save paulschick/db2d04baf1da2167be4c73ad92f9803f to your computer and use it in GitHub Desktop.
Save paulschick/db2d04baf1da2167be4c73ad92f9803f to your computer and use it in GitHub Desktop.
Download a YouTube live stream with ytarchive running in the background
#!/bin/bash
function yt {
printf "Downloading stream at:\t'$1'\n"
nohup $HOME/go/bin/ytarchive -q -w -o '%(channel)s/%(upload_date)s_%(title)s' "$1" best 2>&1 > ytarchive-"$(date +%Y%m%d-%H%M%S)".log &
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment