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

BBC no JSON object could be decoded #10873

Closed
surgeio opened this issue Oct 8, 2016 · 2 comments
Closed

BBC no JSON object could be decoded #10873

surgeio opened this issue Oct 8, 2016 · 2 comments
Labels

Comments

@surgeio
Copy link

@surgeio surgeio commented Oct 8, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.10.07

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):


[steve@ando BBC]$ python2.7 ~/youtube-dl/youtube-dl --verbose --proxy="46.101.19.214:80" http://www.bbc.co.uk/iplayer/episode/b07ypgc4
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--proxy=46.101.19.214:80', u'http://www.bbc.co.uk/iplayer/episode/b07ypgc4']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.10.07
[debug] Python version 2.7.2 - Linux-2.6.18-407.el5-i686-with-redhat-5.11-Final
[debug] exe versions: avconv 11.7, avprobe 11.7, ffmpeg 0.6.5, ffprobe 0.6.5
[debug] Proxy map: {u'http': u'46.101.19.214:80', u'https': u'46.101.19.214:80'}
[bbc.co.uk] b07ypgc4: Downloading video page
[bbc.co.uk] b07ypgc4: Downloading playlist JSON
ERROR: b07ypgc4: Failed to parse JSON  (caused by ValueError('No JSON object could be decoded',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 558, in _parse_json
    return json.loads(json_string)
  File "/usr/local/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Traceback (most recent call last):
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 356, in extract
    return self._real_extract(url)
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/extractor/bbc.py", line 501, in _real_extract
    programme_id, title, description, duration, formats, subtitles = self._download_playlist(group_id)
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/extractor/bbc.py", line 390, in _download_playlist
    playlist_id, 'Downloading playlist JSON')
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 552, in _download_json
    json_string, video_id, transform_source=transform_source, fatal=fatal)
  File "/home/steve/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 562, in _parse_json
    raise ExtractorError(errmsg, cause=ve)
ExtractorError: b07ypgc4: Failed to parse JSON  (caused by ValueError('No JSON object could be decoded',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.



Description of your issue, suggested solution and other information

Downloading from BBC iplayer URLs seems to have stopped working some time in the last month or two. Downloading was working a month or two ago (I don't remember the exact date) but now gives a JSON error "No JSON object could be decoded".

@surgeio
Copy link
Author

@surgeio surgeio commented Oct 8, 2016

I forgot to mention -- I've tried using different proxies, and get the same error.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Oct 8, 2016

it a problem in the proxy not in youtube-dl:

youtube-dl http://www.bbc.co.uk/iplayer/episode/b07ypgc4
[bbc.co.uk] b07ypgc4: Downloading video page
[bbc.co.uk] b07ypcf1: Downloading media selection XML
[bbc.co.uk] b07ypcf1: Downloading m3u8 information
[bbc.co.uk] b07ypcf1: Downloading MPD manifest
[bbc.co.uk] b07ypcf1: Downloading m3u8 information
[bbc.co.uk] b07ypcf1: Downloading MPD manifest
[bbc.co.uk] b07ypcf1: Downloading m3u8 information
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 88
[download] Destination: Danger Mouse, 39. The Cute Shall Inherit the Earth-b07ypcf1.mp4
[download]   0.1% of ~423.63MiB at 165.94KiB/s ETA 58:12

the proxy you're using return a phpinfo webpage instead of the video webpage.

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
2 participants
You can’t perform that action at this time.