为啥用网易云用户ID该播放器不显示了
BNTang opened this issue · comments
Neo commented
METO commented
提供下可复现代码?
Neo commented
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--音乐播放器-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.0/dist/APlayer.min.css">
<script src="https://blog-static.cnblogs.com/files/zouwangblog/APlayer.min.js"></script>
<script src="https://unpkg.com/meting@1.2/dist/Meting.min.js"></script>
<div id="player" class="aplayer aplayer-withlist aplayer-fixed" data-id="6814613109" data-server="netease"
data-type="playlist" data-order="random" data-fixed="true" data-listfolded="true" data-theme="orange"></div>
</body>
</html>
Catfish commented
我的也不显示了。
https://www.cnblogs.com/ast935478677/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div id="aplayer">
<!-- require APlayer -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<!-- require MetingJS -->
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>
<!-- order="list" or "random" -->
<!-- https://music.163.com/#/playlist?id=5077365455 -->
<meting-js
server="netease"
type="playlist"
id="5077365455"
autoplay="true"
fixed="true"
mini="true"
order="random"
loop="all">
</meting-js>
</div>
</body>
</html>
METO commented
已定位到问题,网易云音乐封禁策略,已临时绕过。
Neo commented
已定位到问题,网易云音乐封禁策略,已临时绕过。
算是解决了?
METO commented
@BNTang 你的这个问题应该是防盗链了
curl https://blog-static.cnblogs.com/files/zouwangblog/APlayer.min.js -H 'referer: https://i-meto.com/'
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Error_404_资源不存在</title>
<style type="text/css">
body{margin:8% auto 0;max-width: 550px; min-height: 200px;padding:10px;font-family: Verdana,Arial,Helvetica,sans-serif;font-size:14px;}p{color:#555;margin:10px 10px;}img {border:0px;}.d{color:#404040;}
</style>
</head>
<body>
<a href="http://www.cnblogs.com/"><img src="http://img.cnblogs.com/logo_small.gif" alt="博客园"/></a>
<p><b>404.</b> 抱歉! 您访问的资源不存在!</p>
<p class="d">请确认您输入的网址是否正确,如果问题持续存在,请发邮件至contact@cnblogs.com与我们联系。</p>
<p><a href="http://www.cnblogs.com/">返回网站首页</a></p>
</body>
</html>
建议用官方的 APlayer.min.js 链接
CYD commented
已定位到问题,网易云音乐封禁策略,已临时绕过。
目前好像不行?和这位的基本一致 #55 (comment)
XiaoYaoXiaoYao commented
请问上面的这个播放器显示不了,之后是怎么解决的
zyp997 commented
我也遇到了这个问题,封禁 cookie 了?
yr10086 commented
今天突然自己歌单没办法在播放器显示了,其他人的个别歌单又可以
wangxinzhi0 commented
网易云音乐时有时无,有解决这个问题的么,好气哦