blackjack4494 / yt-dlc

media downloader and library for various sites.
The Unlicense
2.89k stars 363 forks source link

Unable to extract ytInitialData #307

Open mansj opened 3 years ago

mansj commented 3 years ago

Hi, I've updated to the latest version (using pip) but I'm still getting this error:

youtube-dlc --verbose https://www.youtube.com/playlist?list=XXXXX- -o "XXXX"

[debug] System config: []

[debug] User config: []

[debug] Custom config: []

[debug] Loading archive file None

[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8

[debug] youtube-dlc version 2020.11.11-3

[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-14-686-pae-i686-with-debian-10.9

[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1, phantomjs ., rtmpdump 2.4

[debug] Proxy map: {}

[youtube:playlist] PLoSytarswoSPP06AYmdN2bKT1U9HZkQ4-: Downloading webpage

ERROR: Unable to extract ytInitialData; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; see  https://github.com/blackjack4494/yt-dlc  on how to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.

Traceback (most recent call last):

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/YoutubeDL.py", line 830, in extract_info

    ie_result = ie.extract(url)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/common.py", line 532, in extract

    ie_result = self._real_extract(url)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/youtube.py", line 3042, in _real_extract

    has_videos, playlist = self._extract_playlist(playlist_id)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/youtube.py", line 2994, in _extract_playlist

    next(self._entries(page, playlist_id))

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/youtube.py", line 341, in _entries

    data_json = self._parse_json(self._search_regex(self._INITIAL_DATA_RE, page, 'ytInitialData'), None)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/common.py", line 1010, in _search_regex

    raise RegexNotFoundError('Unable to extract %s' % _name)

RegexNotFoundError: Unable to extract ytInitialData; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; see  https://github.com/blackjack4494/yt-dlc  on how to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.
pukkandan commented 3 years ago

This project has not had any updates for half an year. You can check out my fork yt-dlp

mansj commented 3 years ago

Thank you.

alexi28baez commented 1 year ago

Hola, he actualizado a la última versión (usando pip) pero todavía recibo este error:

youtube-dlc --verbose https://www.youtube.com/playlist?list=XXXXX- -o "XXXX"

[debug] System config: []

[debug] User config: []

[debug] Custom config: []

[debug] Loading archive file None

[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8

[debug] youtube-dlc version 2020.11.11-3

[debug] Python version 2.7.16 (CPython) - Linux-4.19.0-14-686-pae-i686-with-debian-10.9

[debug] exe versions: ffmpeg 4.1.6-1, ffprobe 4.1.6-1, phantomjs ., rtmpdump 2.4

[debug] Proxy map: {}

[youtube:playlist] PLoSytarswoSPP06AYmdN2bKT1U9HZkQ4-: Downloading webpage

ERROR: Unable to extract ytInitialData; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; see  https://github.com/blackjack4494/yt-dlc  on how to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.

Traceback (most recent call last):

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/YoutubeDL.py", line 830, in extract_info

    ie_result = ie.extract(url)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/common.py", line 532, in extract

    ie_result = self._real_extract(url)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/youtube.py", line 3042, in _real_extract

    has_videos, playlist = self._extract_playlist(playlist_id)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/youtube.py", line 2994, in _extract_playlist

    next(self._entries(page, playlist_id))

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/youtube.py", line 341, in _entries

    data_json = self._parse_json(self._search_regex(self._INITIAL_DATA_RE, page, 'ytInitialData'), None)

  File "/home/manjo/.local/lib/python2.7/site-packages/youtube_dlc/extractor/common.py", line 1010, in _search_regex

    raise RegexNotFoundError('Unable to extract %s' % _name)

RegexNotFoundError: Unable to extract ytInitialData; please report this issue on https://github.com/blackjack4494/yt-dlc . Make sure you are using the latest version; see  https://github.com/blackjack4494/yt-dlc  on how to update. Be sure to call youtube-dlc with the --verbose flag and include its complete output.

Hola se puede arreglar el error?