Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Invalid \escape error while trying to download a youtube page #2353
Comments
|
I got exactly the same error today and found out that a beginning uppercase (i.e "\U") instead of lowercase "\u" in a unicode-escape string causes this error, because the json decoder lib of python (my python version is also 2.7.x) only scans for the lowercase variant. A solution was, that I replaced |
|
Thank you for the report, this will be fixed in the next version. Since I'm currently mobile with a very spotty connection, the release may take some time, but should be out within 10 hours. Simply replacing |
command:
youtube-dl -v http://www.youtube.com/channel/UCjbfdFm4786wi6hFXjDKxSA/videos
ouput that I get:
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/channel/UCjbfdFm4786wi6hFXjDKxSA/videos']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.08.2
[debug] Python version 2.7.5+ - Linux-3.11.0-15-generic-x86_64-with-LinuxMint-16-petra
[debug] Proxy map: {}
[youtube:channel] UCjbfdFm4786wi6hFXjDKxSA: Downloading webpage
[youtube:channel] UCjbfdFm4786wi6hFXjDKxSA: Downloading page #1
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "../youtube-dl/main.py", line 18, in
File "../youtube-dl/youtube_dl/init.py", line 800, in main
File "../youtube-dl/youtube_dl/init.py", line 790, in _real_main
File "../youtube-dl/youtube_dl/YoutubeDL.py", line 982, in download
File "../youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info
File "../youtube-dl/youtube_dl/extractor/common.py", line 158, in extract
File "../youtube-dl/youtube_dl/extractor/youtube.py", line 1596, in _real_extract
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 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Invalid \escape: line 1 column 40052 (char 40051)