Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mgtv] An extractor error has occurred (update on version 2020.09.14). #26415

Open
TurnOffNOD opened this issue Aug 23, 2020 · 3 comments
Open

[mgtv] An extractor error has occurred (update on version 2020.09.14). #26415

TurnOffNOD opened this issue Aug 23, 2020 · 3 comments

Comments

@TurnOffNOD
Copy link

@TurnOffNOD TurnOffNOD commented Aug 23, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.07.28
    Update: youtube-dl version 2020.09.14, problem still exists.
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log (version 2020.09.14)

$ youtube-dl --no-geo-bypass --verbose https://www.mgtv.com/b/334727/9996419.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--no-geo-bypass', '--verbose', 'https://www.mgtv.com/b/334727/9996419.html']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.09.14
[debug] Python version 3.8.6 (CPython) - Linux-4.19.128-microsoft-standard-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.3.1-4, ffprobe 4.3.1-4, rtmpdump 2.4
[debug] Proxy map: {}
[MGTV] 9996419: Downloading JSON metadata
[MGTV] 9996419: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('data')); 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/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/mgtv.py", line 56, in _real_extract
    stream_data = self._download_json(
KeyError: 'data'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/mgtv.py", line 56, in _real_extract
    stream_data = self._download_json(
KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 543, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('data')); 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.

Verbose log (version 2020.07.28)

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--no-geo-bypass', 'https://www.mgtv.com/b/334727/9680012.html']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.8.5 (CPython) - Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.3.1-2, ffprobe 4.3.1-2, rtmpdump 2.4
[debug] Proxy map: {}
[MGTV] 9680012: Downloading JSON metadata
[MGTV] 9680012: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('data')); 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/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/mgtv.py", line 56, in _real_extract
    stream_data = self._download_json(
KeyError: 'data'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/mgtv.py", line 56, in _real_extract
    stream_data = self._download_json(
KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 543, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('data')); 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.

Description

Hi, mgtv (mgtv.com) is a website in China mainland, and I am also in China mainland, so I have to add "--no-geo-bypass" parameter, or it will end up in download error.

I guess it will use --geo-bypass on this website by default? This result in a IP outside China mainland and cause problems.

However, this "An extractor error has occurred." has nothing to do with the parameter, because there was no problem last week (accurately on Aug. 16, UTC+8 timezone).

@20NE
Copy link

@20NE 20NE commented Aug 24, 2020

Same issue inside China!

@tpennycook
Copy link

@tpennycook tpennycook commented Aug 30, 2020

Same issue in Europe with mgtv. Mgtv was working with youtube-dl version 2020.07.28 until quite recently (with the --no-geo-bypass option, and at least sometimes needing the --cookies option).

In my case using:
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.8.5 (CPython) - macOS-10.15.6-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3, ffprobe 4.3, rtmpdump 2.4

@TurnOffNOD
Copy link
Author

@TurnOffNOD TurnOffNOD commented Oct 6, 2020

Hi, youtube-dl version 2020.09.14, problem still exists. The main issue is updated.

@TurnOffNOD TurnOffNOD changed the title [mgtv] An extractor error has occurred. [mgtv] An extractor error has occurred (update on version 2020.09.14). Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.