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

noco.tv: Failed to download JSON #3797

Closed
ianuxfr opened this issue Sep 19, 2014 · 3 comments
Closed

noco.tv: Failed to download JSON #3797

ianuxfr opened this issue Sep 19, 2014 · 3 comments

Comments

@ianuxfr
Copy link

@ianuxfr ianuxfr commented Sep 19, 2014

# youtube-dl -f best --verbose http://noco.tv/emission/14498/nolife/101/1446-19-09-2014-s38-vendredi
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--netrc', '--prefer-ffmpeg', '--output', '%(title)s.%(ext)s', '-f', 'best', '--verbose', 'http://noco.tv/emission/14498/nolife/101/1446-19-09-2014-s38-vendredi']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.09.16
[debug] Python version 3.4.1 - Linux-3.16.2-1-ck-i686-with-arch
[debug] Proxy map: {}
[Noco] Logging in as ianux
[Noco] 14498: Downloading video JSON
ERROR: Failed to download JSON; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 322, in _download_json
    return json.loads(json_string)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 322, in _download_json
    return json.loads(json_string)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 524, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 178, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/noco.py", line 65, in _real_extract
    'https://api.noco.tv/1.0/video/medias/%s' % video_id, video_id, 'Downloading video JSON')
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 324, in _download_json
    raise ExtractorError('Failed to download JSON', cause=ve)
youtube_dl.utils.ExtractorError: Failed to download JSON; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
@dstftw dstftw closed this in 7522976 Sep 20, 2014
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 20, 2014

Noco extractor has been adjusted to fit latest changes introduced by the new noco API version. Thanks for the report.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 22, 2014

I believe this issue to be fixed in youtube-dl 2014.09.22.1 and newer. It seems you have installed youtube-dl with a package manager. Use that package manager to update.

By the way, -f best is superfluous, it's already the default.

@ianuxfr
Copy link
Author

@ianuxfr ianuxfr commented Sep 22, 2014

Still no luck with 2014.09.22.1. I've open an new issue #3816

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.