[Bash] Descargar Playlist de Youtube (Sólo Audio WAV)

Iniciado por LinuxProblems, Enero 24, 2020, 08:46:54 PM

Tema anterior - Siguiente tema

0 Miembros y 2 Visitantes están viendo este tema.

Buenas, acá va un pequeño aporte para los amantes de la música, esto descarga cien veces más rápido que cualquier conversor online

Prerequisitos: Youtube-dl

$ sudo curl -L You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login -o /usr/local/bin/youtube-dl
$ sudo chmod a+rx /usr/local/bin/youtube-dl

Tutorial:

    1) sudo git clone You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
    2) cd Youtube-Playlist-Audio-Downloader/
    3) sudo chmod a+x youtubeaudiodownloader.bash
    4) mover el script a /usr/local/bin ( $ mv youtubeaudiodownloader.bash /usr/local/bin )
    5) abrir consola (terminal) y teclear "youtubeaudiodownloader.bash" SIN sudo
    6) seleccionar opción, enter, pegar link, enter

Para actualizar:

$ sudo pip install -U youtube-dl


Código del script:

Código: text


#!/bin/bash

echo "1. Playlist from Youtube"
echo "2. Audio From Youtube"
read num
if [ $num -eq 1 ]
then
    echo "enter youtube playlist url"
    read urlplaylist
    notify-send "Started Download"
    youtube-dl -x --audio-format wav --audio-quality 0 --yes-playlist -i $urlplaylist
    exit 0
else
    echo "enter one youtube url"
    read url
    notify-send "Started Download"
    youtube-dl -x --audio-format wav --audio-quality 0 --no-playlist -i $url
    exit 0
fi