metowolf / MetingJS

:cake: A powerful plugin connect APlayer and Meting
https://i-meto.com/about/
MIT License
1.18k stars 158 forks source link

为啥用网易云用户ID该播放器不显示了 #55

Open BNTang opened 3 years ago

BNTang commented 3 years ago

image

metowolf commented 3 years ago

提供下可复现代码?

BNTang commented 3 years ago
<!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>
ASTqiaomu commented 3 years ago

我的也不显示了。 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>
metowolf commented 3 years ago

已定位到问题,网易云音乐封禁策略,已临时绕过。

BNTang commented 3 years ago

已定位到问题,网易云音乐封禁策略,已临时绕过。

算是解决了?

metowolf commented 3 years ago

@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&#64;cnblogs.com与我们联系。</p>
<p><a href="http://www.cnblogs.com/">返回网站首页</a></p>
</body>
</html>

建议用官方的 APlayer.min.js 链接

donggoing commented 3 years ago

已定位到问题,网易云音乐封禁策略,已临时绕过。

目前好像不行?和这位的基本一致 https://github.com/metowolf/MetingJS/issues/55#issuecomment-869079836

XiaoYaoXiaoYao commented 3 years ago

请问上面的这个播放器显示不了,之后是怎么解决的

zyp997 commented 3 years ago

我也遇到了这个问题,封禁 cookie 了?

yr10086 commented 3 years ago

今天突然自己歌单没办法在播放器显示了,其他人的个别歌单又可以

wangxinzhi0 commented 3 years ago

网易云音乐时有时无,有解决这个问题的么,好气哦