J'installe yt-dlp et l'utilise depuis pas mal de temps sans problème :
Code : Tout sélectionner
pacman --noconfirm -Syu yt-dlpLà je désire télécharger le film Verdict avec Gabin :
Code : Tout sélectionner
https://www.youtube.com/watch?v=3JZIIvleyawMais je n'arrive pas à le télécharger avec yt-dlp
Sur le net il est précisé qu'il faut lui passer un fichier.txt qui contient les cookies.
On obtient ce ficher avec :
Code : Tout sélectionner
yt-dlp --cookies-from-browser firefox --cookies yt-dlp_cookies.txtyt-dlp_cookies.txt est bien présent dans le répertoire depuis le quel je lance yt-dlpEnsuite pour faire le téléchargement je devrais lancer :
Code : Tout sélectionner
yt-dlp --cookies yt-dlp_cookies.txt --force-overwrites -o "%(upload_date)s - %(title)s -%(id)s.%(ext)s" https://www.youtube.com/watch?v=3JZIIvleyaw -f 605+234Code : Tout sélectionner
#> yt-dlp --cookies yt-dlp_cookies.txt --force-overwrites -o "%(upload_date)s - %(title)s -%(id)s.%(ext)s" https://www.youtube.com/watch?v=3JZIIvleyaw -f 605+234
[youtube] Extracting URL: https://www.youtube.com/watch?v=3JZIIvleyaw
[youtube] 3JZIIvleyaw: Downloading webpage
[youtube] 3JZIIvleyaw: Downloading tv client config
[youtube] 3JZIIvleyaw: Downloading tv player API JSON
[youtube] 3JZIIvleyaw: This video is age-restricted; some formats may be missing without authentication. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
[youtube] 3JZIIvleyaw: Downloading web embedded client config
[youtube] 3JZIIvleyaw: Downloading web embedded player API JSON
[youtube] 3JZIIvleyaw: Downloading web safari player API JSON
ERROR: [youtube] 3JZIIvleyaw: Sign in to confirm your age. This video may be inappropriate for some users. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
Là j'ai l'erreur :
Code : Tout sélectionner
#> #> yt-dlp --list-formats https://www.youtube.com/watch?v=3JZIIvleyaw
[youtube] Extracting URL: https://www.youtube.com/watch?v=3JZIIvleyaw
[youtube] 3JZIIvleyaw: Downloading webpage
[youtube] 3JZIIvleyaw: Downloading tv client config
[youtube] 3JZIIvleyaw: Downloading tv player API JSON
[youtube] 3JZIIvleyaw: This video is age-restricted; some formats may be missing without authentication. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
[youtube] 3JZIIvleyaw: Downloading web embedded client config
[youtube] 3JZIIvleyaw: Downloading web embedded player API JSON
[youtube] 3JZIIvleyaw: Downloading web safari player API JSON
ERROR: [youtube] 3JZIIvleyaw: Sign in to confirm your age. This video may be inappropriate for some users. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
Je vérifie la version de yt-dlp, mais j'ai l’Erreur :
Code : Tout sélectionner
yt-dlp -U
Current version: stable@2025.07.21 from yt-dlp/yt-dlp
Latest version: stable@2025.09.26 from yt-dlp/yt-dlp
ERROR: You installed yt-dlp from a manual build or with a package manager; Use that to update
Latest version: stable@2025.09.26.Comment l'obtenir ?
il semble que
yt-dlp -U ne peut y accéder...MERCI