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

watch_later feed: Failed to parse JSON #4486

Closed
effleurager opened this issue Dec 15, 2014 · 3 comments
Closed

watch_later feed: Failed to parse JSON #4486

effleurager opened this issue Dec 15, 2014 · 3 comments

Comments

@effleurager
Copy link
Contributor

@effleurager effleurager commented Dec 15, 2014

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [':ytwatchlater', '--playlist-start', '110', '--playlist-end', '110', '--add-metadata', '-f', 'bestvideo+bestaudio', '-o', '%(title)s.%(ext)s', '-n', '-c', '-k', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.15
[debug] Python version 2.7.8 - Linux-3.16.0-28-generic-x86_64-with-Ubuntu-14.10-utopic
[debug] exe versions: avconv 11-6, avprobe 11-6
[debug] Proxy map: {}
[youtube:watch_later] Downloading login page
[youtube:watch_later] Logging in
[youtube:watch_later] watch_later feed: Downloading page 1
ERROR: watch_later feed: Failed to parse JSON (caused by ValueError('Invalid \escape: line 1 column 98440 (char 98439)',)); 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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 402, 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: Invalid \escape: line 1 column 98440 (char 98439)
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 592, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 243, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1560, in _real_extract
'Downloading page %s' % i)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 396, in _download_json
json_string, video_id, transform_source=transform_source, fatal=fatal)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 406, in _parse_json
raise ExtractorError(errmsg, cause=ve)
ExtractorError: watch_later feed: Failed to parse JSON (caused by ValueError('Invalid \escape: line 1 column 98440 (char 98439)',)); 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.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 15, 2014

Works fine for me. Can you post the files you get when you add the --write-pages option? If you do think the information therein is too sensitive, feel free to send it via private email to ytdl@yt-dl.org .

@phihag phihag closed this in 84d8421 Dec 16, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Dec 16, 2014

Thank you for the report. I believe this issue to be fixed in youtube-dl 2014.12.16.1 and newer. See our FAQ if you need help updating.

@effleurager
Copy link
Contributor Author

@effleurager effleurager commented Dec 16, 2014

Thanks so much for the hasty fix, it's solved the issue :) Silly case
matching :P

On Tue, 16 Dec 2014 17:08 Philipp Hagemeister notifications@github.com
wrote:

Thank you for the report. I believe this issue to be fixed in youtube-dl
2014.12.16.1 and newer. See our FAQ https://yt-dl.org/update if you
need help updating.


Reply to this email directly or view it on GitHub
#4486 (comment).

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.