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

[dailymotion] Unterminated string starting at: line 1 column 8518 (char 8517) #7826

Closed
lalinsky opened this issue Dec 10, 2015 · 0 comments
Closed

Comments

@lalinsky
Copy link
Contributor

@lalinsky lalinsky commented Dec 10, 2015

Getting metadata for this video fails - http://www.dailymotion.com/video/x3c0qnd

$ PYTHONPATH=`pwd`  ./bin/youtube-dl --verbose --list-formats 'http://www.dailymotion.com/video/x3c0qnd'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--list-formats', u'http://www.dailymotion.com/video/x3c0qnd']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.12.09
[debug] Git HEAD: f2c4cf3
[debug] Python version 2.7.10 - Linux-4.2.0-19-generic-x86_64-with-Ubuntu-15.10-wily
[debug] exe versions: ffmpeg 2.7.3-0ubuntu0.15.10.1, ffprobe 2.7.3-0ubuntu0.15.10.1, rtmpdump 2.4
[debug] Proxy map: {}
[dailymotion] x3c0qnd: Downloading webpage
ERROR: x3c0qnd: Failed to parse JSON  (caused by ValueError('Unterminated string starting at: line 1 column 8518 (char 8517)',)); 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 "/home/lukas/work/youtube-dl/youtube_dl/extractor/common.py", line 483, in _parse_json
    return json.loads(json_string)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Unterminated string starting at: line 1 column 8518 (char 8517)
Traceback (most recent call last):
  File "/home/lukas/work/youtube-dl/youtube_dl/YoutubeDL.py", line 663, in extract_info
    ie_result = ie.extract(url)
  File "/home/lukas/work/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
    return self._real_extract(url)
  File "/home/lukas/work/youtube-dl/youtube_dl/extractor/dailymotion.py", line 128, in _real_extract
    player = self._parse_json(player_v5, video_id)
  File "/home/lukas/work/youtube-dl/youtube_dl/extractor/common.py", line 487, in _parse_json
    raise ExtractorError(errmsg, cause=ve)
ExtractorError: x3c0qnd: Failed to parse JSON  (caused by ValueError('Unterminated string starting at: line 1 column 8518 (char 8517)',)); 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.
@dstftw dstftw closed this in 0b534d2 Dec 10, 2015
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
1 participant
You can’t perform that action at this time.