Aggiornamento 2019/07
Quando si effettua il download di un video con youtube-dl può verificarsi che lo stesso non vada a buon fine e si presenti l’errore:
ERROR: “token” parameter not in video info for unknown reason; Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the –verbose flag and include its complete output.
Come si legge nel messaggio accertarsi di disporre dell’ultima versione del programma. Visti i continui cambiamenti in youtube questa è l’unica soluzioni per disporre di una versione di youtube-dl efficace. Gli aggiornamenti sono frequenti.
In debian9.xx ad esempio la versione presente nei repository e quella del 2017
# youtube-dl --version
2017.05.18.1
# whereis youtube-dl
youtube-dl: /usr/bin/youtube-dl
Le instruzioni per il download dell’ultima versione sono reperibili alla pagina http://ytdl-org.github.io/youtube-dl/download.html.
Visto che si tratta di un singolo file, se si desidera conservare la vecchia del repository ufficiale, si può utilizzare un nome diverso per l’ultima versione ( last) ad esempio youtube-dll
Effettuare il download da terminale con curl oppure wget la directory di destinazione consigliata è /usr/local/bin in nome è leggermente cambiato in youtube-dll
# sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dll
# sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dll
conferire i permessi per di esecuzione
chmod a+rx /usr/local/bin/youtube-dll
per controllare versione e posizione del nuovo comando
# youtube-dl --version
2019.07.02
# whereis youtube-dll
youtube-dll: /usr/local/bin/youtube-dll
Dettagli Error youtube-dl
# youtube-dl https://www.youtube.com/watch?v=F2s8U9p-ej4
F2s8U9p-ej4: Downloading webpage
F2s8U9p-ej4: Downloading video info webpage
ERROR: F2s8U9p-ej4: "token" parameter not in video info for unknown
reason; please report this issue on https://yt-dl.org/bug . Make sure
you are using the latest version; see https://yt-dl.org/update on how to
update. Be sure to call youtube-dl with the --verbose flag and include
its complete output.
Altro errore
ERROR: Signature extraction failed: Traceback (most recent call last) …
RegexNotFoundError: Unable to extract Initial JS player signature function name; …
in youtube-dl
youtube-dl https://www.youtube.com/watch?v=LYhrYHmUPn Setting language LYhrYHmUPn0: Downloading webpage LYhrYHmUPn0: Downloading video info webpage LYhrYHmUPn0: Extracting video information LYhrYHmUPn0: Encrypted signatures detected. LYhrYHmUPn0: Downloading js player vfljL8ofl ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature video_id, player_url, s File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js u'Initial JS player signature function name') File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex raise RegexNotFoundError(u'Unable to extract %s' % _name) RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update. ; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Risorse:
- Linux: download and convert videos and audio Clipgrab, vlc, DamnVid, youtube-dl, downverter
- Soundconverter rilasciata la versione 2.1.1
- Ubuntu 12.10 Installare 12.10 Handrake il noto programma di transcodifica video
- Come riprodurre mp3, wma, wmv files in linux ubuntu debian redhat
- VLC versione 2.0.4 rilasciata
- Formato contenitore – Wikipedia
- Codec Audio Video per Ubuntu Linux
- youtube-dl