Skip to content

Instantly share code, notes, and snippets.

@hbt
Created November 9, 2017 19:30
Show Gist options
  • Save hbt/d3c0ffc8f8b3b6637ee01eed5ec40107 to your computer and use it in GitHub Desktop.
Save hbt/d3c0ffc8f8b3b6637ee01eed5ec40107 to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -rf /home/user/mp3
mkdir /home/user/mp3
cd /home/user/mp3
mkdir .gd
cd .gd
cp ~/credentials.json .
cd ..
youtube-dl -v --no-playlist "https://www.youtube.com/watch?v=hS5CfP8n_js"
for i in *.mp4; do ffmpeg -i "$i" -vn "$i.mp3";done
for i in *.webm; do ffmpeg -i "$i" -vn "$i.mp3";done
for i in *.mkv; do ffmpeg -i "$i" -vn "$i.mp3";done
drive push -no-prompt *.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment