Bon ! Ça fonctionne avec une version récente de youtube.dl.
La version actuelle de youtube-dl sur Ubuntu Raring 13.04 est
youtube-dl 2012.09.27+dfsg1-1.
J'ai téléchargé la version
youtube-dl 2013.07.18-1~webupd8~raring, bien plus récente, dans
le dépôt du PPA webupd8.
Pour infos et pour ceux qui rencontreraient un problème avec leur version de youtube-dl, la version
youtube-dl 2013.07.18 est dispo pour Precise 12.04, Quantal 12.10, Raring 13.04 et Saucy 13.10 dans
le dépôt du PPA webupd8. Il suffit juste de télécharger la version qui correspond à votre distribution et l'installer.
Test. Téléchargement en cours de ma playlist :
bishop@U-buntu:~/youtube-dl-playlist-master$ python youtube-dl-playlist.py
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
Update playlist animations
youtube-dl --title --continue --ignore-errors --no-overwrite --no-post-overwrites --keep-video --extract-audio --audio-format mp3 --audio-quality 0 PLq4rjrS3wfoD6k4ynA0-y9faqNVMFFQuN
[youtube:playlist] PLq4rjrS3wfoD6k4ynA0-y9faqNVMFFQuN: Downloading page #1
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
[download] Downloading playlist: Animations
[youtube:playlist] playlist 'Animations': Collected 10 video ids (downloading 10 of them)
[download] Downloading video #1 of 10
[youtube] Setting language
[youtube] jEjUAnPc2VA: Downloading video webpage
[youtube] jEjUAnPc2VA: Downloading video info webpage
[youtube] jEjUAnPc2VA: Extracting video information
[download] Destination: Pigeon - Impossible-jEjUAnPc2VA.mp4
[download] 100.0% of 76.02MiB at 91.28KiB/s ETA 00:00
[avconv] Destination: Pigeon - Impossible-jEjUAnPc2VA.mp3
[download] Downloading video #2 of 10
[youtube] Setting language
[youtube] cpniGv99t84: Downloading video webpage
[youtube] cpniGv99t84: Downloading video info webpage
[youtube] cpniGv99t84: Extracting video information
[download] Destination: Hezarfen - 3D Animation [2011]-cpniGv99t84.flv
[download] 100.0% of 17.12MiB at 82.03KiB/s ETA 00:00
[avconv] Destination: Hezarfen - 3D Animation [2011]-cpniGv99t84.mp3
[download] Downloading video #3 of 10
[youtube] Setting language
[youtube] -q__WsTLp5I: Downloading video webpage
[youtube] -q__WsTLp5I: Downloading video info webpage
[youtube] -q__WsTLp5I: Extracting video information
[download] Destination: ELECTROSHOCK - ESMA 2011--q__WsTLp5I.mp4
[download] 2.5% of 108.27MiB at 102.62KiB/s ETA 17:32
Par contre il faut informer les utilisateurs (
ou que tu modifies l'output) que le dossier de destination qui est créé et où se trouvent les vidéos téléchargées est un dossier caché.
Par exemple, chez moi, le chemin dans le playlist.ini est output_path=/home/bishop/Musique/YouTube.
Un dossier caché .video est créé ce qui donne /home/bishop/Musique/YouTube/.video.
Je dis cela parce que j'ai cherché où se trouvaient les vidéos.
Pour info, la vidéo est téléchargée et j'ai la bande son au format que j'ai choisis dans playlist.ini, mp3.