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

ERROR: G8d2xyXP7DA: Failed to parse JSON (caused by ValueError('Expecting value : line 1 column 1 (char 0)',)); when downloading video from www.tudou.com #12214

Closed
haislandcn opened this issue Feb 22, 2017 · 7 comments
Labels

Comments

@haislandcn
Copy link

@haislandcn haislandcn commented Feb 22, 2017

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 that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.02.21. 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 2017.02.21

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

E:\download>youtube-dl --verbose "http://www.tudou.com/programs/view/G8d2xyXP7DA
"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'http://www.tudou.com/programs/view/G8d
2xyXP7DA']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2017.02.21
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.2.2, ffprobe 3.2.2
[debug] Proxy map: {}
[tudou] G8d2xyXP7DA: Downloading JSON metadata
ERROR: G8d2xyXP7DA: Failed to parse JSON  (caused by ValueError('Expecting value
: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bu
g . 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 outp
ut.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\extractor\common.py", line 660, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\extractor\common.py", line 660, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\YoutubeDL.py", line 704, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\extractor\common.py", line 427, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\extractor\tudou.py", line 77, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\extractor\common.py", line 654, in _download_json
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpqrnhzzwk\bu
ild\youtube_dl\extractor\common.py", line 664, in _parse_json
youtube_dl.utils.ExtractorError: G8d2xyXP7DA: Failed to parse JSON  (caused by V
alueError('Expecting value: line 1 column 1 (char 0)',)); please report this iss
ue 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.
...
<end of log>

Description of your issue, suggested solution and other information

When trying to download any video from www.tudou.com which was uploaded since 2017/2/19, an error about "Failed to parse JSON" occur, below is the error info in normal usage, I had dumped all info with youtube-dl --verbose "http://www.tudou.com/programs/view/G8d2xyXP7DA/" in above section.

I tried this in Windows 7 both of 32bit and 64bit, also I tried it in Windows XP 32bit, error will occur in all of them. I have no Windows 8 and Windows 10, so I did not give it a try.

E:\download>youtube-dl.exe --download-archive 1.txt "http://www.tudou.com/progra
ms/view/G8d2xyXP7DA/"
[tudou] G8d2xyXP7DA: Downloading JSON metadata
ERROR: G8d2xyXP7DA: Failed to parse JSON (caused by ValueError('Expecting value
: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bu
g . 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 outp
ut.

@haislandcn
Copy link
Author

@haislandcn haislandcn commented Feb 22, 2017

Downloading video which was uploaded before 2017/2/19 with same environment is OK. (this is an incorrect conclusion, currently, only some of links can be downloaded, whatever they are uploaded before/after 2017/2/19)

For example: youtube-dl.exe --download-archive 1.txt "http://www.tudou.com/programs/view/tBGssIQnOq0/" works well.

@yan12125 yan12125 added the broken-IE label Feb 22, 2017
@fireattack
Copy link

@fireattack fireattack commented Feb 26, 2017

I can confirm tudou is broken, but it's not restricted to "video which was uploaded before 2017/2/19" here.

http://www.tudou.com/programs/view/YTaG61s7Usg
http://www.tudou.com/programs/view/WkBloIE86Yk/

I tried these two quickly, can't download either (they're uploaded in 2010).

@haislandcn
Copy link
Author

@haislandcn haislandcn commented Feb 27, 2017

Yes, I did try an older link which was uploaded in 2016 and can be downloaded before, but they are not work now. Seems this error is related with tudou, not youtube-dl?

@fireattack
Copy link

@fireattack fireattack commented Feb 27, 2017

Yeah, for the two videos I listed, I actually downloaded them succesfully half a month ago. It's likely Tudou changed something in their end. Nevertheless, it's the nature of web service, we have to adapt.

@dstftw dstftw mentioned this issue Feb 27, 2017
0 of 4 tasks complete
@dkl3
Copy link

@dkl3 dkl3 commented Feb 28, 2017

Very sorry--I didn't notice this issue and didn't think somebody else would use Tudou with youtube-dl. Anyway, hopefully this issue willl get fixed.

@haislandcn
Copy link
Author

@haislandcn haislandcn commented Feb 28, 2017

Never mind. youtube-dl is greate, we always using it download the video from many sites besides of youtube.com. :) That will be greate if we can support tudou.com again.

@yan12125 yan12125 closed this in c130f0a May 26, 2017
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 26, 2017

Tudou is merge into Youku now, and youtube-dl will be able to download it in the next version.

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
4 participants
You can’t perform that action at this time.