SliTaz SliTaz Forum

You are not logged in.

#1 2019-10-28 06:16:24

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

youtube-dl ...

... 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.

Offline

#2 2019-10-28 06:56:37

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: youtube-dl ...

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.

Offline

#3 2019-10-28 08:24:00

Guest
Guest

Re: youtube-dl ...

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 ?

#4 2019-10-28 17:19:36

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: youtube-dl ...

@ 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 --help

Offline

#5 2019-10-28 19:10:28

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: youtube-dl ...

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)

Offline

#6 2019-10-28 19:31:08

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: youtube-dl ...

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 ...

[c]
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#
[/c]

Offline

#7 2019-10-29 02:39:07

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: youtube-dl ...

My upgrade:

[c]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#[/c]
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:

[c]tux@linux:~$ su
root@linux:/home/tux# tazpkg -gi python-pip
root@linux:/home/tux# youtube-dl -U -v[/c]

Offline

#8 2019-10-29 08:06:23

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: youtube-dl ...

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/54oirtHecNz45g

Offline

#9 2019-10-29 16:24:06

Guest
Guest

Re: youtube-dl ...

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.

#10 2019-10-29 19:36:16

Darjeeling
Member
Registered: 2012-02-06
Posts: 210

Re: youtube-dl ...

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.

Offline

#11 2019-10-30 09:38:36

Guest
Guest

Re: youtube-dl ...

...ah ! On rebooting, I went to 'My Packages' and it still shows the old version installed - did not update to 2019.10.29 ...

#12 2019-10-30 14:19:43

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: youtube-dl ...

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.22

Offline

#13 2019-10-31 09:11:43

Guest
Guest

Re: youtube-dl ...

@gibor

Many thanks for your advice - terminal output shows that the most recent version is installed:

tux@slitaz:~$ youtube-dl --version

2019.10.29

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]