ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.33k stars 10.03k forks source link

[douyutv] API Changed #10153

Closed dojima closed 8 years ago

dojima commented 8 years ago

Please follow the guide below


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


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 ```):

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.douyu.com/105025', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.07.24
[debug] Python version 3.4.4 - Windows-7-6.1.7600-SP0
[debug] exe versions: ffmpeg N-79440-g0efafc5, rtmpdump 2.4
[debug] Proxy map: {}
[DouyuTV] 105025: Downloading webpage
ERROR: Server reported error 1002: api??????
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm6orrgyc\bu
ild\youtube_dl\YoutubeDL.py", line 682, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm6orrgyc\bu
ild\youtube_dl\extractor\common.py", line 347, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm6orrgyc\bu
ild\youtube_dl\extractor\douyutv.py", line 108, in _real_extract
youtube_dl.utils.ExtractorError: Server reported error 1002: api??????

Description of your issue, suggested solution and other information

Douyutv.com API seems to have changed. As a result, youtube-dl no longer works with the site.

yan12125 commented 8 years ago

Thanks to @steven7851, douyu will be fixed in the next version.