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

Getting a Failed to parse JSON from Vice video locked videos. #18409

Closed
freshicet opened this issue Dec 5, 2018 · 0 comments
Closed

Getting a Failed to parse JSON from Vice video locked videos. #18409

freshicet opened this issue Dec 5, 2018 · 0 comments
Labels

Comments

@freshicet
Copy link

@freshicet freshicet commented Dec 5, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.12.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

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

Before submitting an issue make sure you have:

  • [x ] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones
  • [ x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • [ x] 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)
  • [ x] Question
  • Other

sudo youtube-dl --ap-mso eagle --ap-username my_email@my_email https://www.viceland.com/en_us/video/new-jersey-drive/57683e3f5d83958b0dfc1103 --verbose
[debug] System config: ['--proxy', '192.168.1.216:8118']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ap-mso', 'eagle', '--ap-username', 'PRIVATE', 'https://www.viceland.com/en_us/video/new-jersey-drive/57683e3f5d83958b0dfc1103', '--verbose']
Type TV provider account password and press [Return]:
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.12.03
[debug] Python version 3.6.7 (CPython) - Linux-4.18.0-11-generic-x86_64-with-Ubuntu-18.10-cosmic
[debug] exe versions: ffmpeg 4.0.2-2, ffprobe 4.0.2-2, phantomjs ., rtmpdump 2.4
[debug] Proxy map: {'http': '192.168.1.216:8118', 'https': '192.168.1.216:8118'}
[vice] 57683e3f5d83958b0dfc1103: Downloading webpage
[vice] 57683e3f5d83958b0dfc1103: Retrieving Media Token
[vice] 57683e3f5d83958b0dfc1103: Downloading JSON metadata
ERROR: 57683e3f5d83958b0dfc1103: Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)',)); 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/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 877, in _parse_json
    return json.loads(json_string)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 877, in _parse_json
    return json.loads(json_string)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 508, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/vice.py", line 164, in _real_extract
    video_id, query=query)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 870, in _download_json
    expected_status=expected_status)
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 854, in _download_json_handle
    fatal=fatal), urlh
  File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 881, in _parse_json
    raise ExtractorError(errmsg, cause=ve)
youtube_dl.utils.ExtractorError: 57683e3f5d83958b0dfc1103: Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)',)); 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.


---

### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://www.viceland.com/en_us/video/new-jersey-drive/57683e3f5d83958b0dfc1103
- Single video: https://www.viceland.com/en_us/video/the-sony-hack/577177f4db3251f521db358f


---

### Description of your *issue*, suggested solution and other information

Getting a Failed to parse JSON from Vice video locked videos. Able to get vice videos that are free. Able to watch from my credentials.  
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.