Download helper ne fonctionne plus

salur
perso je fais ça :
0. installer python3-venv

  1. créer un alias ytdlp
    alias ytdlp='python3 -m venv /tmp/ytdlp-poub&& source /tmp/ytdlp-poub/bin/activate && pip install yt-dlp && yt-dlp "$1"'
  2. pour télécharger : ytdlp http://…

je trovue que les donwloadhelper et autres ne marchent pas assez souvent, trop instables

1 J'aime

Hier, il y a eut une mise à jour de yt-dlp, c’est bel et bien la nouvelle version des backports
https://packages.debian.org/bookworm-backports/yt-dlp

il faut rajouter la ligne du dépot des backports dans le sources.list

1 J'aime

**python3-venv** est déjà installé
Ca marche, j’ai juste rectifié alias yt-dlp avec le tiret ça va mieux : ))

joel@hP600:~$ alias yt-dlp='python3 -m venv /tmp/ytdlp-poub&& source /tmp/ytdlp-poub/bin/activate && pip install yt-dlp && yt-dlp "$1"'
joel@hP600:~$ yt-dlp https://www.youtube.com/watch?v=ZTF_0xsn5CM&list=RDZTF_0xsn5CM&index=1
[1] 10231
[2] 10232
joel@hP600:~$ Collecting yt-dlp
  Downloading yt_dlp-2025.3.25-py3-none-any.whl (3.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 19.0 MB/s eta 0:00:00
Installing collected packages: yt-dlp
Successfully installed yt-dlp-2025.3.25
[generic] Extracting URL: 
ERROR: [generic] '' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:" ) to search YouTube
[youtube] Extracting URL: https://www.youtube.com/watch?v=ZTF_0xsn5CM
[youtube] ZTF_0xsn5CM: Downloading webpage
[youtube] ZTF_0xsn5CM: Downloading tv client config
[youtube] ZTF_0xsn5CM: Downloading player 363db69b
[youtube] ZTF_0xsn5CM: Downloading tv player API JSON
[youtube] ZTF_0xsn5CM: Downloading ios player API JSON
[youtube] ZTF_0xsn5CM: Downloading m3u8 information
[info] ZTF_0xsn5CM: Downloading 1 format(s): 135+140
[download] Destination: The Molecatcher [ZTF_0xsn5CM].f135.mp4
[download] 100% of  512.76KiB in 00:00:00 at 4.26MiB/s
[download] Destination: The Molecatcher [ZTF_0xsn5CM].f140.m4a
[download] 100% of    2.84MiB in 00:00:00 at 20.86MiB/s
[Merger] Merging formats into "The Molecatcher [ZTF_0xsn5CM].mp4"
Deleting original file The Molecatcher [ZTF_0xsn5CM].f135.mp4 (pass -k to keep)
Deleting original file The Molecatcher [ZTF_0xsn5CM].f140.m4a (pass -k to keep)

J’ai retrouvé le fichier .mp4 non dans le répertoire downloadhelper mais dans le répertoire racine
Merci

@bub : Comment ajouter cette ligne ? la recopier telle quelle en dernière ligne du fichier /etc/apt/sources.list ou ajouter deb ou autre chose au début ?

oui il faut le deb au début, voilà ce que tu dois mettre :

deb http://deb.debian.org/debian bookworm-backports main contrib non-free

salut
fais bien attention qu’il y a ici deux méthodes diférentes:

  1. la méthode par deb, celle que je conseille en général mais pas ici car, yt-dlp nécessite d’être très à jour sur la dernière version
  2. ma méthode par python-pip , qui marche plus souvent dans mon expérience <=2024

@ dindoun Oui j’ai bien pensé la même chose. Comme je n’ai pas d’autre besoin pour le moment je n’ai pas ajouté la ligne sur les backports à mon sources.list. Mais c’est bien d’avoir la possibilité au cas où.

Bonjour
Pas de bol ça se complique ce matin

joel@hP600:~$ yt-dlp https://www.youtube.com/watch?v=um0VleA8jRE
[youtube] Extracting URL: https://www.youtube.com/watch?v=um0VleA8jRE
[youtube] um0VleA8jRE: Downloading webpage
[youtube] um0VleA8jRE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] um0VleA8jRE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] um0VleA8jRE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] um0VleA8jRE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: 'Bad Request'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] um0VleA8jRE: Downloading player 4fcd6e4a
WARNING: [youtube] um0VleA8jRE: nsig extraction failed: You may experience throttling for some formats
         n = 3Wlh4WWU3RmbfzqGM ; player = https://www.youtube.com/s/player/4fcd6e4a/player_ias.vflset/en_US/base.js
WARNING: [youtube] um0VleA8jRE: nsig extraction failed: You may experience throttling for some formats
         n = rtnxm1GrV5YJ_wk1n ; player = https://www.youtube.com/s/player/4fcd6e4a/player_ias.vflset/en_US/base.js
[info] um0VleA8jRE: Downloading 1 format(s): 135+140
[dashsegments] Total fragments: 10
[download] Destination: Swing- Lindy Hop Dance lessons level 1 [um0VleA8jRE].f135.mp4
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (10/10)...
[download] Got error: HTTP Error 403: Forbidden. Giving up after 10 retries
ERROR: fragment 1 not found, unable to continue

[dashsegments] Total fragments: 4
[download] Destination: Swing- Lindy Hop Dance lessons level 1 [um0VleA8jRE].f140.m4a
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (10/10)...
[download] Got error: HTTP Error 403: Forbidden. Giving up after 10 retries
ERROR: fragment 1 not found, unable to continue

essai sur une autre video

joel@hP600:~$ yt-dlp https://www.france.tv/france-5/les-docs-de-la-grande-librairie/7005082-marguerite-yourcenar.html
[FranceTVSite] Extracting URL: https://www.france.tv/france-5/les-docs-de-la-grande-librairie/7005082-marguerite-yourcenar.html
[FranceTVSite] 7005082-marguerite-yourcenar: Downloading webpage
ERROR: [FranceTVSite] 7005082-marguerite-yourcenar: Unable to extract video ID; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
joel@hP600:
joel@hP600:~$ yt-dlp -U
Available version: stable@2025.03.26, Current version: stable@2023.03.04
ERROR: As yt-dlp has been installed via apt, you should use that to update.  If you're on a stable release, also check backports.
joel@hP600:~$ 

J’ai donc mis à jour les paquets (déjà fait hier après midi )

joel@hP600:~$ sudo apt update
[sudo] Mot de passe de joel : 
Atteint :1 http://security.debian.org/debian-security bookworm-security InRelease
Atteint :2 http://deb.debian.org/debian bookworm InRelease
Réception de :3 http://deb.debian.org/debian bookworm-updates InRelease [55,4 kB]
55,4 ko réceptionnés en 0s (130 ko/s)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Tous les paquets sont à jour.
joel@hP600:~$ sudo apt upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Calcul de la mise à jour... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
joel@hP600:~$ 

Pas mieux
merci

Il faut patienter que la nouvelle version arrive dans backports.
La commande yt-dlp -U ne marche que pour les installations manuelles hors dépôts

@blunt : pour le moment je n’ai pas introduit deb http://deb.debian.org/debian bookworm-backports main contrib non-free dans le sources.list puisque ça marchait sans ça. Evidemment je comprends maintenant pourquoi la MàJ n’a abouti qu’au paquet yt-dlp 23.03.04-1

Ce qui m’étonne c’est que cette manip a marché hier, et pas ce matin

salut
petite confusion :
l’alias crée le programme ytdlp
tu dois donc écrire ytdlp http…
quand tu écris yt-dlp tu lances probablement le programme /usr/bin/yt-dlp qui vient d’un .deb

solution :

  1. vire yt-dlp en deb avec apt-get --purge remove yt-dlp
  2. ytdlp doit te donner une ligne qui commence par (ytdlp-poub) comme (ytdlp-poub) dindoun@monordi: ~$
  3. alors seulement ytdlp marche et which yt-dlp doit te donner
    /tmp/ytdlp-poub/bin/yt-dlp

dans ce cas ytdlp marche sur youtube mais pas sur francetv qui nécessite un login et là je ne sais pas faire

Bonjour
J’ai désinstallé yt-dlp avec apt --purge remove yt-dlp

joel@hP600:~$ ytdlp
bash: ytdlp : commande introuvable

Je suis reparti du début :

joel@hP600:~$ apt policy python3-venv
python3-venv:
  Installé : 3.11.2-1+b1
  Candidat : 3.11.2-1+b1
 Table de version :
 *** 3.11.2-1+b1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
joel@hP600:~$ alias ytdlp='python3 -m venv /tmp/ytdlp-poub&& source /tmp/ytdlp-poub/bin/activate && pip install yt-dlp && yt-dlp "$1"'
joel@hP600:~$ ytdlp
Collecting yt-dlp
  Downloading yt_dlp-2025.3.27-py3-none-any.whl (3.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 19.0 MB/s eta 0:00:00
Installing collected packages: yt-dlp
Successfully installed yt-dlp-2025.3.27
[generic] Extracting URL: 
ERROR: [generic] '' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:" ) to search YouTube
(ytdlp-poub) joel@hP600:~$ apt policy yt-dlp
yt-dlp:
  Installé : (aucun)
  Candidat : 2023.03.04-1
 Table de version :
     2023.03.04-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
(ytdlp-poub) joel@hP600:~$ 

Je vois que c’est la version yt-dlp-25.3.27 qui est maintenant installée, mais non détectée par apt, la version hors backports étant toujours 23.03.04-1 . C’est ça ?

Le scoop : ça remarche, je viens de télécharger un film sur YT et une video sur Arte, puis une autre sur France5 (après connection) avec un clic droit qui m’ouvre un menu dans lequel il y a VideoDownloadHelper, je n’ai plus qu’à choisir le type de fichier .

Pour éviter ces aléas pour l’ensemble des applications utilisant potentiellement yt-dlp (firefox / mpv / smplayer etc), l’exécutable yt-dlp doit impérativement être accessible à l’un des emplacements définis par la variable PATH → echo "$PATH"

Pour installer la dernière version du paquet yt-dlp de Debian, sans ajouter de dépôt backport, la méthode suivante peut, entre autre, être utilisée:

R=http://ftp.fr.debian.org/debian/pool/main/y/yt-dlp/
LV=$(curl -s $R |awk -F'">|</' '/yt-dlp_.*deb</{x=$2};END{print x}')
printf " Dernière version yt-dlp dépôt Debian:\n $LV\n"
[[ $LV =~ $(yt-dlp --version) ]] || { cd /tmp 
wget ${R}$LV && sudo apt install ./$LV ; }

test:
yt-dlp -F 'EngW7tLk6R8'

1 J'aime

salut

à quel moment firefox utilise yt-dlp?

Firefox associé à une extension de download basé sur yt-dlp, ou de lecture video mpv nécessitant yt-dlp comme ff2mpv peut avoir besoin de trouver directement un exécutable yt-dlp, selon sa version.

Bonjour
Je parviens encore aujourd’hui à enregistrer une video sur Arte ou France5 avec un clic droit ouvrant un menu contenant Video DownloadHelper.
Par contre ça ne fonctionne pas comme ça sur YouTube, je dois copier l’URL de la video dans la console. Du moins ceci était vrai jusqu’il y a 20 minutes, mais à cet instant :

joel@hP600:~$ ytdlp https://www.youtube.com/watch?v=JHBSgRue-08
bash: ytdlp : commande introuvable

J’ai eu l’idée de recréer l’alias et là ça remarche, le truc ironique est qu’on me dit que ça a déjà été téléchargé

joel@hP600:~$ ytdlp https://www.youtube.com/watch?v=JHBSgRue-O8
Requirement already satisfied: yt-dlp in /tmp/ytdlp-poub/lib/python3.11/site-packages (2025.3.27)
[generic] Extracting URL: 
ERROR: [generic] '' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:" ) to search YouTube
[youtube] Extracting URL: https://www.youtube.com/watch?v=JHBSgRue-O8
[youtube] JHBSgRue-O8: Downloading webpage
[youtube] JHBSgRue-O8: Downloading tv client config
[youtube] JHBSgRue-O8: Downloading player 20830619
[youtube] JHBSgRue-O8: Downloading tv player API JSON
[youtube] JHBSgRue-O8: Downloading ios player API JSON
[youtube] JHBSgRue-O8: Downloading m3u8 information
[info] JHBSgRue-O8: Downloading 1 format(s): 18
[download] Fats Waller - The Jitterbug Waltz [JHBSgRue-O8].mp4 has already been downloaded
[download] 100% of    3.69MiB
(ytdlp-poub) joel@hP600:~$ 

Merci

Pour ma part, ça fait pas mal d’années que je télécharge youtube avec ce site :

Il ouvre pas mal de pages de pub mais il suffit de revenir sur l’onglet de départ pour télécharger.

Remarque : j’ai juste mis l’URL, c’est le site du forum qui l’a converti.