Автор Тема: Youtube-dl. Скорость загрузки. [решено]  (Прочитано 47367 раз)

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки.
« Ответ #45 : 09.08.2018 21:24:38 »
Добавил конкретики:
https://bugzilla.altlinux.org/show_bug.cgi?id=35241#c1

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки.
« Ответ #46 : 09.08.2018 21:46:41 »
...
Если через месяц после появления багрепорта проблема не будет устранена, отправлю запрос на сборку в клубный репозиторий с предоставлением src.rpm и тестовых бинарных пакетов.

Взял под контроль отправив сообщение самому себе напоминалкой.

Оффлайн vzor74

  • Давно тут
  • **
  • Сообщений: 34
Re: Youtube-dl. Скорость загрузки.
« Ответ #47 : 10.08.2018 06:32:16 »
Добавил конкретики:
https://bugzilla.altlinux.org/show_bug.cgi?id=35241#c1

Да, из уст специалиста звучит лаконичнее!  :-)

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки.
« Ответ #48 : 18.08.2018 06:54:45 »
Ошибка медленного скачивания аудиофайлов через youtube-dl исправлена сборкой сизифного пакета в p8:
$ rpm -qa | grep youtube'-\|_'dl
python3-module-youtube_dl-2018.04.09-alt0.M80P.1
youtube-dl-2018.04.09-alt0.M80P.1
[download] 100% of 4.13MiB in 00:04

#35241 закрыт: RESOLVED FIXED
youtube-dl-2018.04.09-alt0.M80P.1 -> p8
Aug 14 2018 Grigory Ustinov ... 2018.04.09-alt0.M80P.1

$ rpm -q --qf '%{CHANGELOGTEXT}\n' youtube-dl
- Backport new version to p8 branch (Closes: #35241).

Если используете команду конвертации
$ time -f %e youtube-dl -f bestaudio -x --audio-format mp3 <youtube_link>

не забывайте устанавливать и дополнительные пакеты, - по зависимостям они не подтянутся
# apt-get install youtube-dl avprobe avconv

Тема переходит в статус [Решено]
« Последнее редактирование: 18.08.2018 06:58:07 от Speccyfighter »

Оффлайн vzor74

  • Давно тут
  • **
  • Сообщений: 34
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #49 : 18.08.2018 08:51:20 »
[vzor@vzor-admin new]$ apt-repo
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64 classic
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64-i586 classic
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/noarch classic
[vzor@vzor-admin new]$ youtube-dl --version
2018.04.09

Ура!

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #50 : 19.08.2018 05:04:09 »
Ещё о youtube-dl:

Команда
youtube-dl -f bestaudio -x --audio-format mp3 <youtube_link>

по-умолчанию конвертирует в аудиофайл с переменным битрейтом (Variable).

Если после конвертации на выходе требуется аудиофайл с фиксированным битрейтом (Constant), укажите этот битрейт опцией и параметром.
Здесь в примере, это 192 kb/s:
$ youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 192K <youtube_link>

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #51 : 18.11.2018 10:05:00 »
Опять сломали... Который уже раз?
$ rpm -q youtube-dl avconv avprobe
youtube-dl-2018.10.05-alt1
avconv-11.6-alt1
avprobe-11.6-alt1
$ youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 192K --verbose https://www.youtube.com/watch?v=6v2L2UGZJAM&t=30s
[1] 3874
[user@core-i3-5005u youtube-dl-test]$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestaudio', '-x', '--audio-format', 'mp3', '--audio-quality', '192K', '--verbose', 'https://www.youtube.com/watch?v=6v2L2UGZJAM']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.5.4 (CPython) - Linux-4.1.21-std-pae-alt1-i686-with-starter-p8-altlinux
[debug] exe versions: avconv 11.6-alt1, avprobe 11.6-alt1
[debug] Proxy map: {}
[youtube] 6v2L2UGZJAM: Downloading webpage
[youtube] 6v2L2UGZJAM: Downloading video info webpage
WARNING: unable to extract html5 player; 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.
[youtube] {22} signature length 44.40, html5 player None
[youtube] 6v2L2UGZJAM: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflof8Kxx/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 507, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1814, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1231, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.

[1]+  Exit 1                  youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 192K --verbose https://www.youtube.com/watch?v=6v2L2UGZJAM

И после этого говорят что линукс пригоден для десктопа. Да ну нахрен, вы что, издеваетесь?
Пингвин птица гордая, - пока ногой не пнёшь, не взлетит.
Софт попадающий в стабильный репозиторий, хоть когда-нибудь входящую проверку проходит? Или так, собрал и сойдёт?
« Последнее редактирование: 18.11.2018 10:23:44 от Speccyfighter »

mvk

  • Гость
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #52 : 18.11.2018 11:35:09 »
Софт попадающий в стабильный репозиторий, хоть когда-нибудь входящую проверку проходит? Или так, собрал и сойдёт?
Забавно как они firefox-esr c тремя патчами две недели проверяют)) За такое время самому десять написать и отправить в мозилу можно. Я тож такую работу хочу, на девок денег не хватает. Или это только для родственников и знакомых?

Оффлайн yaleks

  • Мастер
  • ***
  • Сообщений: 6 222
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #53 : 18.11.2018 12:30:16 »
Опять сломали... Который уже раз?

И после этого говорят что линукс пригоден для десктопа. Да ну нахрен, вы что, издеваетесь?
так это youtube что-то поменял и надо чаще обновлять версию youtube-dl.

Оффлайн ∞lan∞

  • Завсегдатай
  • *
  • Сообщений: 328
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #54 : 14.01.2019 18:13:07 »
Опять сломали... Который уже раз?
$ rpm -q youtube-dl avconv avprobe
youtube-dl-2018.10.05-alt1
avconv-11.6-alt1
avprobe-11.6-alt1
$ youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 192K --verbose https://www.youtube.com/watch?v=6v2L2UGZJAM&t=30s
[1] 3874
[user@core-i3-5005u youtube-dl-test]$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestaudio', '-x', '--audio-format', 'mp3', '--audio-quality', '192K', '--verbose', 'https://www.youtube.com/watch?v=6v2L2UGZJAM']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.5.4 (CPython) - Linux-4.1.21-std-pae-alt1-i686-with-starter-p8-altlinux
[debug] exe versions: avconv 11.6-alt1, avprobe 11.6-alt1
[debug] Proxy map: {}
[youtube] 6v2L2UGZJAM: Downloading webpage
[youtube] 6v2L2UGZJAM: Downloading video info webpage
WARNING: unable to extract html5 player; 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.
[youtube] {22} signature length 44.40, html5 player None
[youtube] 6v2L2UGZJAM: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflof8Kxx/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 507, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1814, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1231, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.

[1]+  Exit 1                  youtube-dl -f bestaudio -x --audio-format mp3 --audio-quality 192K --verbose https://www.youtube.com/watch?v=6v2L2UGZJAM

И после этого говорят что линукс пригоден для десктопа. Да ну нахрен, вы что, издеваетесь?
Пингвин птица гордая, - пока ногой не пнёшь, не взлетит.
Софт попадающий в стабильный репозиторий, хоть когда-нибудь входящую проверку проходит? Или так, собрал и сойдёт?
Теперь и у меня кина не будет.
$ youtube-dl --verbose -F https://www.youtube.com/watch?v=EExahMsBoWM
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-F', 'https://www.youtube.com/watch?v=EExahMsBoWM']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.10.05
[debug] Python version 3.5.4 (CPython) - Linux-4.9.147-std-def-alt0.M80P.1-x86_64-with-ALT-8.2-altlinux
[debug] exe versions: avconv 11.6-alt1
[debug] Proxy map: {}
[youtube] EExahMsBoWM: Downloading webpage
[youtube] EExahMsBoWM: Downloading video info webpage
WARNING: unable to extract html5 player; 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.
[youtube] {18} signature length 43.40, html5 player None
[youtube] EExahMsBoWM: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vfl_235rs/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 507, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1814, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1231, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #55 : 14.01.2019 19:31:50 »
Теперь и у меня кина не будет.

Да, этот патефон в альтах не фурычит.

В альтах
$ youtube-dl --version
2018.10.05

он старее чем в билдах slackware
https://slackbuilds.org/result/?search=youtube-dl&sv=14.2

Name Category Version Slackware
youtube-dl Network 2018.12.17 14.2

а в билдах он старее чем на гитхабе
https://rg3.github.io/youtube-dl/download.html

2019.01.10 (sig)

SHA256: e9757a708d34aee5045951c3a12d8046525f81fa23d3db71d6cd0a89d90787c2

Альты часто кладут болт на обновление кода. И с этим нужно смириться.

Оффлайн sb

  • Модератор глобальный
  • *****
  • Сообщений: 8 991
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #56 : 14.01.2019 19:35:58 »
Альты часто кладут болт на обновление кода. И с этим нужно смириться.
Старый код пережить можно, труднее пережить случай, если код собран, но банально не запускается, поскольку его запуск в минимальном окружении даже не тестируется - бинарник тупо складывается в репозиторий (для статистики - мол смотрите как дофига у нас пакетов в репе, один, ёшкин кот, из крупнейших репозиториев в мире и это факт, а кто не верит может мимо проходить), а реальные люди потом получают инвалидность на обе руки и ближе чем за версту к компьютеру с линуксом (а тем более с альт линуксом) не подходят.

Оффлайн Speccyfighter

  • Мастер
  • ***
  • Сообщений: 10 259
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #57 : 14.01.2019 23:56:07 »
Альты часто кладут болт на обновление кода. И с этим нужно смириться.
Старый код пережить можно, труднее пережить случай, если код собран, но банально не запускается,
...

:-) А он и не запускается:
$ strace youtube-dl --verbose -F https://www.youtube.com/watch?v=sTapjQQxk2w
...
write(2, "Traceback (most recent call last"..., 4270Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 507, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1814, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1231, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1221, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1130, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/youtube.py", line 1193, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "/usr/lib/python3/site-packages/youtube_dl/extractor/common.py", line 977, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; 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 RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.

) = 4270
...
[youtube] sTapjQQxk2w: Downloading video info webpage
[youtube] {18} signature length 43.40, html5 player None
[youtube] sTapjQQxk2w: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vfl_235rs/en_US/base.js
+++ exited with 1 +++

Петрович

  • Гость
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #58 : 15.01.2019 14:27:58 »
Запускается да не все smtube

Петрович

  • Гость
Re: Youtube-dl. Скорость загрузки. [решено]
« Ответ #59 : 15.01.2019 14:29:09 »
в поиске мини трактор