En aquest xicotet article et mostre un truc que he fet per a solventar un error estrany que em donava yt-dlp este matí quan volia descarregar un video.
L'error que em responia yt-dlp és el següent:
$ yt-dlp https://youtu.be/VRoDXVghkq4
[youtube] Extracting URL: https://youtu.be/VRoDXVghkq4
[youtube] VRoDXVghkq4: Downloading webpage
WARNING: [youtube] No supported JavaScript runtime could be found. Only deno is enabled by default; to use another runtime add --js-runtimes RUNTIME[:PATH] to your command/config. YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. See https://github.com/yt-dlp/yt-dlp/wiki/EJS for details on installing one
[youtube] VRoDXVghkq4: Downloading visionos player API JSON
ERROR: [youtube] VRoDXVghkq4: This video is not available
joan@mart:~/Downloads/video$
Les versions noves de yt-dlp exigeixen tenir algun entorn de JavaScript (com Deno o Node.js) instal·lat al sistema per poder desxifrar certs components de YouTube. Si no el detecta, algunes resolucions o formats fallen.
La solució definitiva recomanada per yt-dlp:
curl -fsSL https://deno.land/install.sh | sh
Una volta el tingues instal·lat, afegeix-lo al teu $PATH seguint les instruccions que et mostrarà la terminal (o simplement tanca i torna a obrir la sessió). Quan yt-dlp detecte Deno, deixarà de mostrar l'avís.





