... could do with an update. The version in the SliTaz5 repo is "2018.09.18" and this no longer works as Google keep changing things to prevent people from downloading stuff from YouTube. The latest available version of youtube-dl on GitHub is from 27 October 2019.

youtube-dl ...
(13 posts) (4 voices)-
Posted 5 years ago #
-
Hi, try command-line to upgrade. On my version work well...
youtube-dl -U
Updating to version 2019.10.22 ...
Updated youtube-dl. Restart youtube-dl to use the new version.Posted 5 years ago # -
Many thanks Darjeeling for asking this question and to gibor for the solution - I was able to update my youtube-dl too.
I tried this to update clementine 1.2.3 to version 1.3.1, but it didn't work:
root@slitaz:/home/tux# clementine -U
clementine: invalid option -- 'U'Does -U only work for youtube-dl ?
Posted 5 years ago # -
@ gibor
Thanks for your reply. I did try "youtube-dl -U" last night but it wouldn't work. All I ever got in response was "ERROR: can't find the current version. Please try again later." ... very strange! I also tried the "-U" option in combination with other options like "--prefer-insecure", but it didn't make a difference. A year ago they discussed the problem on github: https://github.com/ytdl-org/youtube-dl/issues/15497@mikey777
Most executables like clementine or youtube-dl or geany or mtpaint etc. have their own specific command line arguments. You can find out what's available by entering the program name followed by " -h" or " --help" in the terminal, e.g.clementine -h
clementine --helpPosted 5 years ago # -
If you want to investigate, try with option -U -v
this is my result
youtube-dl -U -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-U', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.22
[debug] Python version 2.7.5 (CPython) - Linux-3.9.5-slitaz-i686-with-glibc2.0
[debug] exe versions: ffmpeg 4.1.3, rtmpdump 2.3
[debug] Proxy map: {}
youtube-dl is up-to-date (2019.10.22)Posted 5 years ago # -
Yes, even this I did try out last night. But it only produced gibberish that I couldn't understand. Your output looks neat & tidy by comparison. Here's my gibberish ...
root@linux:/home/tux# youtube-dl -U -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-U', u'-v'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2018.09.18 [debug] Python version 2.7.15 (CPython) - Linux-3.16.55-slitaz-i686-with-glibc2.0 [debug] exe versions: ffmpeg 4.1.3, rtmpdump 2.4 [debug] Proxy map: {} Traceback (most recent call last): File "/usr/bin/youtube-dl/youtube_dl/update.py", line 45, in update_self newversion = opener.open(VERSION_URL).read().decode('utf-8').strip() File "/usr/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 1139, in https_open req, **kwargs) File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open raise URLError(err) URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)> ERROR: can't find the current version. Please try again later. root@linux:/home/tux#
Posted 5 years ago # -
My upgrade:
lexeii@slitaz:/media/exxt$ youtube-dl -U -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-U', u'-v'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2019.08.13 [debug] Python version 2.7.15 (CPython) - Linux-3.16.55-slitaz64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5670_@_1.80GHz-with-glibc2.0 [debug] exe versions: ffmpeg 4.1.3, rtmpdump 2.4 [debug] Proxy map: {} Updating to version 2019.10.29 ... ERROR: no write permissions on /usr/bin/youtube-dl lexeii@slitaz:/media/exxt$ su Password: root@slitaz:/media/exxt# youtube-dl -U -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-U', u'-v'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2019.08.13 [debug] Python version 2.7.15 (CPython) - Linux-3.16.55-slitaz64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5670_@_1.80GHz-with-glibc2.0 [debug] exe versions: ffmpeg 4.1.3, rtmpdump 2.4 [debug] Proxy map: {} Updating to version 2019.10.29 ... Updated youtube-dl. Restart youtube-dl to use the new version. root@slitaz:/media/exxt#
No errors too.
Googling your error urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726) I found this and looks like your Python2 can't connect to HTTPS. Possibly it required some file called cacert.pem in the folder called certifi.
In the SliTaz Rolling only two packages have this folder/file: package python-pip and package py3k (aka Python3). Youtube-dl uses Python2 according to it's log, so please try to install python-pip package and try to update youtube-dl again:
tux@linux:~$ su root@linux:/home/tux# tazpkg -gi python-pip root@linux:/home/tux# youtube-dl -U -v
Posted 5 years ago # -
I confirm the bug are on version of python. If anyone want to solve first the developer correct the packages, share my version of python 2.7.5.
https://yadi.sk/d/54oirtHecNz45gPosted 5 years ago # -
My upgrade seemed to go okay on Slitaz 5 32-bit, as follows:
root@slitaz:/home/tux# youtube-dl -U -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-U', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.22
[debug] Python version 2.7.15 (CPython) - Linux-3.16.55-slitaz-i686-with-glibc2.0
[debug] exe versions: ffmpeg 4.1.3, rtmpdump 2.4
[debug] Proxy map: {}
Updating to version 2019.10.29 ...
Updated youtube-dl. Restart youtube-dl to use the new version.Posted 5 years ago # -
I've been playing around with this a bit more and found that cacerts has to be installed to update youtube-dl and to download videos. Alternatively, one can use the "--no-check-certificate" argument (or is it a parameter?), which can also be stored in the commands section of the gui. Running youtube-dl as root with " --no-check-certificate -U" worked without problems, even with the old 2018 version of the program. I now have the latest version 2019.10.22 installed. There's the question whether cacerts should be a dependency of youtube-dl and its gui version, but I think it's better as it is now, so people have a choice, which of the two methods they want to use. Personally, I prefer to update the program from the terminal as I don't want to store my root password in the gui. But I like to use the gui version for downloads, especially in complicated cases where there are problems with the audio track.
Posted 5 years ago # -
...ah ! On rebooting, I went to 'My Packages' and it still shows the old version installed - did not update to 2019.10.29 ...
Posted 5 years ago # -
Hi mikey, the command line youtube-dl -U upgrade only the binary, nor the packages.
For verifying test your version directly from command line.
The result is the real version installed.
youtube-dl --version
2019.10.22Posted 5 years ago # -
@gibor
Many thanks for your advice - terminal output shows that the most recent version is installed:
tux@slitaz:~$ youtube-dl --version
2019.10.29Posted 5 years ago #
Reply
You must log in to post.