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.
[douyu.com] HTTP 403 error Forbidden every 5 minutes #12316
Comments
|
When trying to stream with VLC, able to stream for 5 minutes
When trying to download, pops up error HTTP 403 after 5 minutes
|
|
From @lexcn he said that a valid sign value cannot be obtained, probably due to invalid key.
|
I'm not sure whether it's a bug of youtube-dl on Windows or ffmpeg. It works for almost 5 minutes on Linux:
Could you try to run the ffmpeg command in the
Nope. In current version there are no more keys. |
|
I'm using a .exe file instead of the Python. What is the command to run to debug my ffmpeg? Out of curiosity, why does the stream stops at 5 minutes using youtube-dl but it does not happens when you watch the stream in Chrome? Thanks. |
This one:
youtube-dl uses the API for iPhone, which returns m3u8, while on desktop douyu still uses flv. |
|
Sorry I'm new to this where should i key in the command in CMD?
So does the token on iPhone gets reset every 5 minutes? What's the difference between watching on iPhone and using youtube-dl? |
|
IIRC CMD does not support multiline commands. Try this:
You'll need to replace the m3u8 url as it gets expired every 5 minutes.
Actually I use Safari with iPhone user-agent and it doesn't really play. Only an error message says that it can't load the m3u8. It would be great if someone can try it on a real iPhone and see what's going on. |
|
Some one get the NEW API KEY here |
|
I know that. As that work has no license declaration, youtube-dl can't use it. |
|
@yan12125 https://github.com/spacemeowx2/DouyuHTML5Player/blob/master/package.json MIT license provided here. Use as you wish.
|
|
Again, it's @spacemeowx2 that finds out a simple API to get a working FLV URL. Thanks! |
What is the purpose of your issue?