Howto fix [youtube-dl] ERROR: URl: “token” parameter not in video info for unknown reason
Why doesn’t youtube-dl download the video anymore?
user@academix2:~$ youtube-dl URl
[youtube] URl: Downloading webpage
[youtube] URl: Downloading video info webpage
ERROR: URl: “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.
We encounter an issue, please, read carefully the error message
Make sure you are using the latest
version; see https://yt-dl.org/update on how to update.
and will be very simple. You don’t need to google or ask anyone.
How do I update youtube-dl??
If you are in the terminal for a failed download, read the error, you will see:
see https://yt-dl.org/update on how to update.
Open the link in browser you use and get the solution but shortly the fix is as follow
Uninstall youtube-dl
# apt remove -y youtube-dl
Install youtube-dl, the latest version
# wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
# chmod a+rx /usr/local/bin/youtube-dl
An extension of the subject, for the curious
The explanation is so simple that I will quote it from github:
“If you’ve followed our manual installation instructions, you can simply run youtube-dl -U (or, on Linux, sudo youtube-dl -U).”
This paragraph does not apply to Debian and Debian based ones because the automatic update mechanism of youtube-dl is disabled on Debian.
┌─[root@academix2]─[~]
└──╼ #youtube-dl -U
…
youtube-dl: error: youtube-dl’s self-update mechanism is disabled on Debian.
If you have installed youtube-dl using a package manager like apt-get or yum,
use the standard system update mechanism to update. Note that distribution
packages are often outdated. As a rule of thumb, youtube-dl releases at least
once a month, and often weekly or even daily. Simply go to https://yt-dl.org to
find out the current version. Unfortunately, there is nothing we youtube-dl
developers can do if your distribution serves a really outdated version.
You can (and should) complain to your distribution in their bugtracker or
support forum.As a last resort, you can also uninstall the version installed by your package
manager and follow our manual installation instructions. For that, remove the
distribution’s package, with a line like
# apt remove -y youtube-dl
Afterwards, simply follow our manual installation instructions:
# wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
# chmod a+rx /usr/local/bin/youtube-dl
$ hash -r
Again, from then on you’ll be able to update with
# youtube-dl -U
Source: github
< https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl >