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

Luc Berger luc.berger at gmail.com
Lun 13 Avr 22:10:46 CEST 2020


Attention mon script est pour le download  (et la mise a jour a
chaque download), pour l'install utiliser
    le script de Manuel
ou
    copier/ colles ces lignes :

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



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 à 21:02, Manuel Schulte <manuel.schulte at gmail.com> a
écrit :

> Je fais pareil, voici mon script...
>
> #!/bin/bash
> ytversion="latest"
> ytpath="/usr/local/bin"
> #
> store="/tmp/"
> #
> # Get from youtube-dl site.
> sudo wget -q -O $store/youtube-dl
> https://yt-dl.org/downloads/$ytversion/youtube-dl
> # Move to final location and make executable.
> sudo mv -v $store/youtube-dl $ytpath/
> sudo chmod a+x $ytpath/youtube-dl
>
> exit $?
>
> Manuel SCHULTE
> *Managing Director, Olympus Consulting sprl*
> *gsm :* +32(0)498 881 718
> *mail :* manuel.schulte at olympusconsulting.eu
> *web :* http://www.olympusconsulting.eu/
>
>
> Le lun. 13 avr. 2020 à 18:44, Luc Berger <luc.berger at gmail.com> a écrit :
>
>> Je prends note de la suggestion !
>> Mais comme de toute façons je copie/colle le lien de la page YT, ca me
>> semble superfétatoire :)
>>
>> Je récupère le youtube-dl directement de la source:
>>
>> 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
>>
>>
>>
>>
>> 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 à 17:53, Aldo <info at brlspeak.net> a écrit :
>>
>>> Bjr Luc. Et merci.
>>>
>>> Ton script à l'air de tourner mais c chez moi qu'il reste un souci;
>>>
>>> note que ici sur Ubuntu, youtube-dl est sous le package manager de Python
>>> pip,
>>> donc après tentative de telechargement sans y parvenir, quand je fais
>>> ctrl+c
>>> là il affiche l'info comme quoi j'utilise un youtube-dl sous/via un
>>> package
>>> manager ou un tarball et que je dois mettre à jour via ça,
>>> chose que j'ai faite :
>>> pip install --upgrade youtube-dl
>>> et la même chose avec sudo en étant user.
>>> et/ou
>>> pip install --user --upgrade youtube-dl
>>>
>>> La maj ça c ok, successfull etc...
>>>
>>> Mais j'ai du mal à tracer la source du problème,
>>> et vu que même mps-youtube pose des soucis il doit y avoir qq chose un
>>> échelon plus haut... qui m'échappe!
>>> Faudrait que je puisse faire un log de youtube-dl http... mais il reste
>>> "entre ciel et terre" et ne resort que avec ctrl+c ! Snif!
>>>
>>> Je puis cependent déjà mettre les deux fichiers minuscules que
>>> youtube_to_mp3 a mis dans $HOME/Musique/ en pj.
>>>
>>> Aldo.
>>>
>>> PS: pourquoi ne pas avoir mis http://www.youtube.com/watch?v= dans une
>>> var
>>> puisque c tj le préfixe YT ?
>>>
>>>
>>> On Mon, Apr 13, 2020 at 04:37:44PM +0200, Luc Berger wrote:
>>> > 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
>>> > >
>>> > >
>>>
>>> > #!/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 " "
>>>
>>> > _______________________________________________
>>> > 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
>>> >
>>>
>>>
>>> --
>>>   |  Verstuurd vanaf mijn GNU/Linux  |  Envoyé de mon GNU/Linux  |
>>>   |  -----------------  Sent from GNU/Linux  ------------------  |
>>> _______________________________________________
>>> 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
>>>
>>> _______________________________________________
>> 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
>>
>> _______________________________________________
> 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/83f51b83/attachment-0001.html>


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