From ffc43f01f5d9667ab33ff0d85c4825f3775d0c7b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 6 Apr 2021 17:08:28 +0800 Subject: [PATCH] [feature] download youtube audio script --- bin/download-yt-mp3.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 bin/download-yt-mp3.sh diff --git a/bin/download-yt-mp3.sh b/bin/download-yt-mp3.sh new file mode 100755 index 0000000..96576c9 --- /dev/null +++ b/bin/download-yt-mp3.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# TheFrenchGhosty's Ultimate YouTube-DL Scripts Collection: The ultimate collection of scripts for YouTube-DL +# https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection +# https://github.com/TheFrenchGhosty +# +# + +youtube-dlc \ + --format "(bestaudio[acodec^=opus]/bestaudio)/best" \ + --verbose \ + --force-ipv4 \ + --sleep-interval 5 \ + --max-sleep-interval 30 \ + --ignore-errors \ + --no-continue \ + --no-overwrites \ + --download-archive archive.log \ + --add-metadata \ + --write-description \ + --write-info-json \ + --write-annotations \ + --write-thumbnail \ + --embed-thumbnail \ + --extract-audio \ + --match-filter "!is_live & !live" \ + --output "%(title)s - %(uploader)s - %(upload_date)s/%(title)s - %(uploader)s - %(upload_date)s [%(id)s].%(ext)s" \ + --merge-output-format "mkv" \ + "$@" 2>/tmp/download-yt-audio-error.log