Skip to content

Instantly share code, notes, and snippets.

View jeromeludmann's full-sized avatar

Jerome Ludmann jeromeludmann

  • France
  • 23:30 (UTC +02:00)
View GitHub Profile
#!/bin/sh
set -x
#Download media + metadata
youtube-dl --write-info-json -x --audio-format mp3 -o "tmp_out.%(ext)s" $1
# Maybe a way to get the file name from previous function
INFO="tmp_out.info.json"
AUDIO="tmp_out.mp3"
echo :: $INFO $AUDIO ::