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

如何处理不带Content-Length等链接下载? #55

Open
yinghualuowu opened this issue Dec 1, 2022 · 3 comments
Open

如何处理不带Content-Length等链接下载? #55

yinghualuowu opened this issue Dec 1, 2022 · 3 comments

Comments

@yinghualuowu
Copy link

yinghualuowu commented Dec 1, 2022

比如有一些直播流的视频链接,不存在长度标记,但可以下载。如果把下载的文件改成对应视频文件是可以打开的.
以下截图是谷歌浏览器下载和fiddler抓包。直播链接只在直播时有效,所以无法提供实时的下载链接
image
image

@lindexi
Copy link
Member

lindexi commented Dec 2, 2022

@yinghualuowu 这不支持分段下载哦,直接下就好

@yinghualuowu
Copy link
Author


想使用 dotnetCampus.FileDownloader 实现flv直播流下载功能,但内部有判断 if (contentLength <= 0)
有尝试注释掉该判断,但还是会莫名其妙的提示下载完成.

@lindexi
Copy link
Member

lindexi commented Dec 2, 2022

@yinghualuowu 这时不太合适用这个库哦,现在这个库只有分段下载的功能,还在逐步加上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants