[Linux-bruxelles] YouTube-dl mort depuis hier...

Luc Berger luc.berger at gmail.com
Lun 13 Avr 16:37:44 CEST 2020


youtube-dl is up-to-date (2020.03.24)

Ca fonctionne chez moi.
J'ai fait un script pour download et extraire le son (chuis un pirate sans
foi ni loi) , et mettre a jour a chaque fois, voir txt attaché. A sauver
comme  /usr/local/bin/youtube_to_mp3



Luc   Berger
*________________________________*
*Rue Pierre Alderson, 7 <http://w3w.co/orage.orgue.orge>*

*1140          Evere <https://goo.gl/maps/vkyQzh4ZSaM2>*
*Belgique <https://goo.gl/maps/vkyQzh4ZSaM2>*
+32 (0)2 245 10 61
+32 (0)499 185 306
Whatsapp, Messenger, Riot, Viber
Skype : lucberger  Bruxelles, BE
Msgr GTalk : luc.berger

Ma voiture peut être louée via Getaround.
<https://fr.getaround.com/location-voiture/evere/peugeot-2008-573390>

*o Co-administrateur SEL-Evere <http://www.sel-evere.be> *
*o Ambassadeur HOPLR <https://www.hoplr.com>, quartier Paix*
*o Conducteur bénévole centraledesmoinsmobiles.be
<http://centraledesmoinsmobiles.be>  a Evere.*
*o Point de collecte de bouchons plastiques au nom de 'Les Amis des
Aveugles et Malvoyants'
<http://amisdesaveugles.org/ne-jetez-plus-vos-bouchons.html>.*
o https://www.bruxselair.org/   Mon capteur PM:
https://www.madavi.de/sensor/graph.php?sensor=esp8266-9232159-sds011
Tous:  https://maps.luftdaten.info/#7/51.063/4.717


Mint Free OS, from freedom came elegance. <http://linuxmint.com/>
https://fr.wikipedia.org/wiki/Linux_Mint




Le lun. 13 avr. 2020 à 16:27, Aldo <info at brlspeak.net> a écrit :

> Bonjour,
>
> j'utilise  Ubuntu  avec youtube-dl qui tourne dans l'interface pip de
> Python.
> J'ai besoin de pouvoir rapatrier les clips et en extraire le "jus sonore";
>
> mais hier soir, tout à coup, je n'arrivais plus à télécharger quoi que ce
> soit,
> idem après une maj de youtube-dl, et de pip.
>
> Note: je sais qu'une annonce de fin de support liée à Python 2.7 pour le
> 31 dec .19 apparaissait depuis un certain temps à chaque maj:
> se peut-il qu'heir ait été le "jour J" ?
> Si oui alors pourquoi le youtube-dl de pip / Ubuntu porte la date de
> 2020.03.24 ?
>
> J'ai du coup installé et lancé mps-youtube, mais lui aussi semble avoir des
> msgs d'erreur liés à quvi, installé lui aussi dans la version packagée par
> ma distrib.
>
> Bref, plus de youtube-dl, plus de mps-youtube ni même cclive pour prendre
> mes tutos (de guitare) à partir de la ligne de commande:
>
> qq'un peut-il m'aider ? cf. 2 typescripts* en pj.
> ...Et ev. me conseiler (en CLI) encore un autre outil susceptible de
> fonctionner ?
>
> Merci,
> et courage!!!
>
> Aldo.
> _______________________________________________
> Linux-bruxelles :
> Èchanger, partager, s'informer par mails sur toute action, proposition
> accordée avec: http://www.bxlug.be/?Nos-statuts
>
> ! 64 kb autorisés par mail, tout fichier inclus !
>
> Linux-bruxelles at lists.bxlug.be
> https://chahut.domainepublic.net/cgi-bin/mailman/listinfo/linux-bruxelles
>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: </pipermail/linux-bruxelles/attachments/20200413/dc73d833/attachment.html>
-------------- section suivante --------------
#!/bin/bash
#echo " "

#echo "Positional Parameters"
#echo '$0 = ' $0
#echo '$1 = ' $1

OUTPUT="/home/${USER}/Musique"
#NOWSHORT=`date +%Y%m%d`
#http://man7.org/linux/man-pages/man1/date.1.html
NOWSHORT=`date '+%Y%m%d%H%M%S'`

## download a full mix play list  How to download YouTube playlist in Linux   http://xmodulo.com/how-to-download-youtube-playlist-in-linux.html
## installation:
## sudo curl -L https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
## sudo chmod a+rx /usr/local/bin/youtube-dl
## youtube-dl -U   update

# added --exec touch in place !!
#https://superuser.com/questions/731227/how-to-extract-the-filename-without-the-extension-from-a-full-path
#FILENAME=${1%.*}

# help ==================
if [ -z $1 ];then
    echo "Version 20200321"
	echo "Usage :$(basename $0) youtube_full_adress (keep)"
	echo "   Si 'keep' est présent, on conservera le fichier d'origine "
	echo "Example: youtube_to_mp3  https://www.youtube.com/watch?v=cFMnG4cSVJM"
	echo "Example: youtube_to_mp3  https://www.youtube.com/watch?v=cFMnG4cSVJM  keep"
	exit 1
fi
# help ==================

echo  --------------------------------------------------
echo Date is  $NOWSHORT
echo Making Dir $NOWSHORT to store new files ..
mkdir  $OUTPUT/$NOWSHORT
echo Downloading
echo and converting to 
echo    $OUTPUT/$NOWSHORT
#echo  "Please note, file's date is NOT today: Search by file name."
#echo File name is :
#echo    $FILENAME
cd $OUTPUT/$NOWSHORT
echo " "

# --audio-quality QUALITY          Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9
#                                     (worse) for VBR or a specific bitrate like 128K (default 5)

if [ "$2" == "keep" ];  then
	echo "Will keep source video ´$1´"
    youtube-dl --exec touch {} -i -x -k --audio-quality 0 --audio-format mp3 $1
else
	youtube-dl --exec touch {} -i -x    --audio-quality 0 --audio-format mp3 $1
fi

echo  --------------------------------------------------
#touch $FILENAME".mp3"
#cd `$OUTPUT`/`$NOWSHORT`
ls -l

echo  --- Updating youtube-dl: Please type root pwd 
sudo youtube-dl --update
echo  --- End updating youtube-dl :  Request root pwd

echo  ---- Done youtube_to_mp3  ---------------------------------------
echo " "
echo " "


Plus d'informations sur la liste de diffusion Linux-bruxelles