Streamlink: Douyu Client error 403 after 1hour +

Created on 11 Dec 2017  路  3Comments  路  Source: streamlink/streamlink

Checklist

  • [x] This is a bug report.
  • [ ] This is a feature request.
  • [x] This is a plugin (improvement) request.
  • [x] I have read the contribution guidelines.

Description

Douyu streams links are expiring i believe and that gives 403 client error or it can be related to something else too
...

Expected / Actual behavior

Not expiring stream.

Reproduction steps / Explicit stream URLs to test

  1. .Start Douyu Stream
  2. Wait 1h +
  3. Stream stops and the error appears

Environment details

Operating system and version: Win10
Streamlink and Python version: 0.9.0 , Python 3.6.1

Comments, logs, screenshots, etc.

Printscreen. https://i.imgur.com/8J96NjG.png

Love Streamlink? Please consider supporting our collective. Thanks!

plugin issue

Most helpful comment

@eleeeeeee Please try to use the source_http stream instead of hls. The hls stream expires after 1 hour. Just add source_http before other stream options for default-stream in your .streamlinkrc file to make it easy to use. Or try to run from terminal like

streamlink https://www.douyu.com/nado source_http -p mpv

All 3 comments

Try to use source_http instead of hls for douyu.com, the http stream doesn't have such a problem. For convenience, add source_http to the beginning of your default-stream in configure file. Make it like this

default-stream=source_http,http,hls,best

hi,the problem that Douyu Client error after 1hour+ are solved?

@eleeeeeee Please try to use the source_http stream instead of hls. The hls stream expires after 1 hour. Just add source_http before other stream options for default-stream in your .streamlinkrc file to make it easy to use. Or try to run from terminal like

streamlink https://www.douyu.com/nado source_http -p mpv
Was this page helpful?
0 / 5 - 0 ratings