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

NFL: Failed to parse JSON #7012

Closed
RingoTheDog opened this issue Sep 28, 2015 · 3 comments
Closed

NFL: Failed to parse JSON #7012

RingoTheDog opened this issue Sep 28, 2015 · 3 comments

Comments

@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented Sep 28, 2015

URL: http://www.steelers.com/news/article-1/Tomlin-on-Ben-getting-Vick-ready/56399c96-4160-48cf-a7ad-1d17d4a3aef7

c:\Transmogrifier>youtube-dl.py -v "http://www.steelers.com/news/article-1/Tomlin-on-Ben-getting-Vick-ready/56399c96-4160-48cf-a7ad-1d17d4a3aef7"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.steelers.com/news/article-1/Tomlin-on-Ben-getting-Vick-ready/56399c96-4160-48cf-a7ad-1d17d4a3aef7']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.09.28
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71727-g46778ab, rtmpdump 2.4
[debug] Proxy map: {}
[nfl.com] 56399c96-4160-48cf-a7ad-1d17d4a3aef7: Downloading webpage
[nfl.com] 56399c96-4160-48cf-a7ad-1d17d4a3aef7: Downloading player config
[nfl.com] 56399c96-4160-48cf-a7ad-1d17d4a3aef7: Downloading JSON metadata
ERROR: 56399c96-4160-48cf-a7ad-1d17d4a3aef7: Failed to parse JSON (caused by ValueError('No JSON object could be decoded',)); please report this issue on https://yt-dl.org/bug . Ma
ng 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 "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\common.py", line 481, in parse_json
return json.loads(json_string)
File "C:\Python27\lib\json__init
_.py", line 338, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Traceback (most recent call last):
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 660, in extract_info
ie_result = ie.extract(url)
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\common.py", line 288, in extract
return self._real_extract(url)
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\nfl.py", line 160, in _real_extract
url_template.format(id=video_id), video_id)
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\common.py", line 475, in _download_json
json_string, video_id, transform_source=transform_source, fatal=fatal)
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\common.py", line 485, in _parse_json
raise ExtractorError(errmsg, cause=ve)
ExtractorError: 56399c96-4160-48cf-a7ad-1d17d4a3aef7: Failed to parse JSON (caused by ValueError('No JSON object could be decoded',)); please report this issue on https://yt-dl.org
u 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.

This link (same vid) does work:
http://www.steelers.com/videos/videos/Tomlin-looks-ahead-to-Ravens-on-a-short-week/12693586-6ea9-4743-9c1c-02c59e4a5ef2

Thanks
Ringo

@Xonshiz
Copy link

@Xonshiz Xonshiz commented Sep 29, 2015

I don't think "http://www.steelers.com" is supported. As the output says so.

@RingoTheDog
Copy link
Author

@RingoTheDog RingoTheDog commented Sep 29, 2015

Xonshiz
dstftw recently added individual NFL team domains support:
5b4c546

the direct link to the video on steelers.com does work with latest YouTube-DL builds.
http://www.steelers.com/videos/videos/Tomlin-looks-ahead-to-Ravens-on-a-short-week/12693586-6ea9-4743-9c1c-02c59e4a5ef2

@dstftw dstftw closed this in aedb930 Sep 30, 2015
dstftw added a commit that referenced this issue Sep 30, 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
2 participants
You can’t perform that action at this time.