[slint] for those distros without youtube-dl-mp3 (fwd)

Linux for blind general discussion blinux-list at redhat.com
Sat Apr 10 09:56:50 UTC 2021



---------- Forwarded message ----------
Date: Sat, 10 Apr 2021 05:56:07
From: Jude DaShiell <jdashiel at panix.com>
Reply-To: slint at freelists.org
To: slint at freelists.org
Subject: [slint] for those distros without youtube-dl-mp3

The following bash script can be useful.
Dependencies are youtube-dl and ffmpeg.
Line 3 of the script has a playlist variable which needs a file name put between
the quotes.  You put one url per line into whatever you named that file then run
the script and it does its magic.  I have used this script and found it to work.

#!/usr/bin/env bash
#file: ypl.sh - download youtube playlist and clean filenames
playlist=""
youtube-dl -o '%(title)s.%(ext)s' -x --restrict-filenames --audio-format mp3
--prefer-ffmpeg -a $playlist
===============================================================================
The Slint mailing list.
Archive: https://www.freelists.org/archive/slint
To subscribe or unsubscribe, email slint-request at freelists.org with the subject
'subscribe' or 'unsubscribe', then answer the email you will receive.
More: email slint-request at freelists.org with as subject 'help' or 'commands'.




More information about the Blinux-list mailing list