youtube-dl trục trặc

47 views
Skip to first unread message

maikhai

unread,
Jun 25, 2016, 7:44:22 AM6/25/16
to ArchLinux Việt Nam
Trước nay mình dùng youtube-dl tải các file nhạc trên youtube là vô tư, nhưng bây giờ gặp trục trặc:

[tada@a3che ~]$ youtube-dl https://www.youtube.com/watch?v=1s_QT4HVqOI
[youtube] 1s_QT4HVqOI: Downloading webpage
[youtube] 1s_QT4HVqOI: Downloading video info webpage
[youtube] 1s_QT4HVqOI: Extracting video information
[youtube] 1s_QT4HVqOI: Downloading js player en_US-vflLyLvKU
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 997, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 912, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/youtube.py", line 975, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/lib/python3.5/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'ur'; 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.
(caused by ExtractorError("Could not find JS function 'ur'; 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.",)); 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.
[tada@a3che ~]$

Đã có làm theo hướng dẫn ở
http://rg3.github.io/youtube-dl/download.html
nhưng vẫn không fix được.

Làm theo một hướng dẫn khác thì:
[root@a3che tada]# youtube-dl -U
It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.

Làm gì tiếp đây?

maikhai

unread,
Jun 25, 2016, 8:41:49 AM6/25/16
to ArchLinux Việt Nam
Vào 11:44:22 UTC Thứ Bảy, ngày 25 tháng 6 năm 2016, maikhai đã viết:
> Trước nay mình dùng youtube-dl tải các file nhạc trên youtube là vô tư, nhưng

Tìm được cách fix ở
https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md
theo đó chỉ cần gõ:
$ youtube-dl -v (dán URL vào, ví dụ) https://www.youtube.com/watch?v=1s_QT4HVqOI

Lạ! Tại sao thêm "v" (verbose?) vào là xong hè?

Võ Hoàng Sang

unread,
Jul 3, 2016, 8:06:40 AM7/3/16
to ArchLinux Việt Nam
Bác có thể dùng 1 số trang web chuyên download Youtube ví dụ như SaveFrom.net :). Nếu Download ko thường xuyên thì cách này hiệu quả hơn :)
Vào 18:44:22 UTC+7 Thứ Bảy, ngày 25 tháng 6 năm 2016, maikhai đã viết:

mai khai

unread,
Jul 3, 2016, 8:29:42 PM7/3/16
to archl...@googlegroups.com
Mình dùng pacman cài youtube-dl rồi chạy với "-v" là ổn rồi. Ví dụ:
[tada@a3che ~]$ youtube-dl -v https://www.youtube.com/watch?v=lt_ufbVbKYo
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=lt_ufbVbKYo']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.25
[debug] Python version 3.5.1 - Linux-4.6.3-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.0.2, ffprobe 3.0.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] lt_ufbVbKYo: Downloading webpage
[youtube] lt_ufbVbKYo: Downloading video info webpage
[youtube] lt_ufbVbKYo: Extracting video information
[youtube] {43} signature length 40.45, html5 player en_US-vflAbrXV8
[youtube] {18} signature length 40.45, html5 player en_US-vflAbrXV8
   -CUT-


--
Quy tắc ứng xử: http://archlinuxvn.org/vn/rules/
Địa chỉ nhóm thư: https://groups.google.com/group/archlinuxvn
---
You received this message because you are subscribed to a topic in the Google Groups "ArchLinux Việt Nam" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/archlinuxvn/t52YQRHFW0U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to archlinuxvn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archlinuxvn/8ffabc9e-1d2a-4a14-9bdb-fbd3aa07245f%40googlegroups.com.



--
m k h _ s g n
Reply all
Reply to author
Forward
0 new messages