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

视频加载失败 #16

Closed
GH6324 opened this issue Jan 13, 2021 · 10 comments
Closed

视频加载失败 #16

GH6324 opened this issue Jan 13, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@GH6324
Copy link

GH6324 commented Jan 13, 2021

更新至v0.1.5后视频加载失败了,包括您的demo网站也是加载失败
视频加载失败

@xhofe
Copy link
Collaborator

xhofe commented Jan 13, 2021

很抱歉 ,由于阿里云盘加入了防盗链机制,目前所有不走服务器的预览均已失效,暂时还没有好的解决办法,只能下载。

@GH6324
Copy link
Author

GH6324 commented Jan 13, 2021

很抱歉 ,由于阿里云盘加入了防盗链机制,目前所有不走服务器的预览均已失效,暂时还没有好的解决办法,只能下载。

好的,谢谢您

@YujiaCheng1996
Copy link

Referer验证了,凉了啊,怎么搞?
有没有可能:
1.只列不预览
2.后端反代/下载缓存

@xhofe
Copy link
Collaborator

xhofe commented Jan 13, 2021

Referer验证了,凉了啊,怎么搞?
有没有可能:
1.只列不预览
2.后端反代/下载缓存

如果后续官方不支持设置Referer白名单/解决不了Referer验证的话,我的设想是像图片/文本/代码这种小文件走服务器代理预览,视频这种大文件只能下载观看了。

@xhofe
Copy link
Collaborator

xhofe commented Jan 13, 2021

或者有更好的方式的话 欢迎提出。

@vbskycn
Copy link

vbskycn commented Jan 13, 2021

下载也报错呀
图片: https://p.pstatp.com/origin/137bc000309a664264e0e

@xhofe
Copy link
Collaborator

xhofe commented Jan 13, 2021

先使用复制直链下载吧

下载也报错呀
图片: https://p.pstatp.com/origin/137bc000309a664264e0e

先使用复制直链下载吧,直接点击下载因为是从列表页面跳转也会携带Referer头,所以会被防盗链机制拒绝。所以只能复制链接到新窗口手动打开。

@xhofe
Copy link
Collaborator

xhofe commented Jan 13, 2021

测试了一下,在html文件头中加入

<meta name="referrer" content="never">

好像可以避开防盗链检测。

@JsonSong89
Copy link

server {
    listen 7091;
	#server_name wt.jsonsong.com wt.jsonsong.win;
	location /proxyimg/
	{
		set $schemex "";
		set $hostx "";
		set $addrs "";
		if ( $uri ~ "^/proxyimg/(http|https)./+([^/]+)/(.+)$") {
			set $schemex $1;
			set $hostx $2;
			set $addrs $3;
		}

		resolver 8.8.8.8 valid=3600s;
		proxy_pass $schemex://$hostx/$addrs;
		proxy_set_header referer "$schemex://$hostx";
	}
}

如果用nginx转一遍估计可以,但绝对是下策,本来就是指望着阿里的大带宽.
阿里还是没有微软厚道啊.

@xhofe xhofe added the bug Something isn't working label Jan 22, 2021
@xhofe xhofe closed this as completed Jan 22, 2021
@yanquan2020
Copy link

3.6.0最新版本的,也还是出现了视频加载失败,有什么解决办法吗?还是有设置注意细节?
image

PS:无论是阿里云盘挂载还是阿里云盘链接挂载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants