Solventant error "WARNING: [youtube] No supported JavaScript runtime could be found" de yt-dlp

Solventant error "WARNING: [youtube] No supported JavaScript runtime could be found" de yt-dlp

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.

Doncs bé això és tot, espere que trobes útil aquest article i que et motive a compartir els teus trucs, els teus coneixements i els teus experiments amb el Programari Lliure. Pensa-ho, va, que la Comunitat del Programari Lliure va creixent gràcies a la documentació, el disseny, la formació o la programació, sigues part de la Comunitat :-)

La cultura i la lliure circulació de les idees és l'arma més efectiva contra les dictadures del pensament i contra la ignorància.

Utilitats

NAVEGACIÓ SENSE RATOLÍ

- Tab següent enllaç.
- Shift+Tab anterior enllaç.
- Enter activa l'enllaç.
- Alt+esquerra anar arrere.

CONTRAST DE COLORS

Accessibilitat - Color Negre
Accessibilitat - Color Groc
Accessibilitat - Color Verd

Accessibilitat - Color Blau
Accessibilitat - Color Crema
Accessibilitat - Color Blanc

 

PORTADES ALTERNATIVES