Open daxiong0513 opened 7 years ago
哥们我也遇到同样问题了,看情况应该是最近这样子,早几个月前我用来听歌是ok的,现在也是没声音,是不是网易那边api变了还是啥的,有没有大神帮忙look look
同样问题
同上,网页版没问题
现在有人解决这个问题了吗
啊我也是这个问题。。。
没解决,仍然存在中... ...
同样遇到问题,头大!!!
我大概知道怎么回事了 1、oxmplayer播放器 不适合 树莓派上播放, 可以给树莓派安装mplayer替代。 2、提取的网易音乐的地址有问题,404, 地址对应的MP3文件根本不存在。 3、subprocess.Popen的写法在树莓派上不起作用,需要改成:
subprocess.Popen(["pkill", "mplayer"])
subprocess.Popen(["mplayer", "-slave", "-quiet", "http://blog.lxx1.com/wp-content/uploads/2016/07/shero.mp3"], shell=False, stdout=open("/dev/null","w"))
目前我把 1 、2条落实了,但是因为网易音乐地址不存在文件,所以无法播放,但是我写死一个真实存在的MP3地址"http://blog.lxx1.com/wp-content/uploads/2016/07/shero.mp3" 在代码里, 可以用微信成功播放音乐,哎, 网易云音乐的地址想办法弄弄吧
我在网易云音乐收藏的音乐网页明明可以播放,但是获取到的地址 404 不存在MP3文件
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404: Not Found No stream found to handle url http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3
do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control.
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404: Not Found
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404:Not Found Failed to parse header. Failed, exiting.
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404: Not Found No stream found to handle url http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control.
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404: Not Found
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404:Not Found Failed to parse header. Failed, exiting.
Couldn't resolve name for AF_INET6: m2.music.126.net
Server returned 404: Not Found No stream found to handle url http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3
我把上面的音乐链接的地址在百度上搜了一下,搜到一个一模一样的, 网页是:http://www.vckers.cn/yinyue.php 这个网页是提供音乐外链的,里面的好多音乐对应的链接都是我上面遇到的那个链接,so, 大概可能也许应该,是网易做了什么防盗链?
我在这个网站上搜了一下,外链地址都是404.
17岁 | 于小彤 | http://m2.music.126.net/fnlSRpPyfaywMNqSXzs09g==/5809819441171643.mp3 17歲 | Favorites丶Lcx | http://m2.music.126.net/iHyOECPWNxaqXDx7i7Ijmg==/18824738580994606.mp3 17岁 | TXSF | http://m2.music.126.net/OXooXDwUDwFNk9jmuv8dNw==/3265549544619436.mp3 17岁 | 独饮情毒 | http://m2.music.126.net/FafJrXqBQfd6zIJpAb2f2g==/18295873486712644.mp3 17岁 | 森语- | http://m2.music.126.net/rcOcW55ej6oT0d0XkW6SXQ==/3300733912498878.mp3 17岁 | Yvonne呀 | http://m2.music.126.net/Kr3fSuORs6IY8qwKiSeCBA==/18778559092552258.mp3 17岁 | 含蓄的龅牙妹 | http://m2.music.126.net/VgFksPNoFEOk_S9MaOZLrg==/18598239185758288.mp3 17岁 | 企鹅熊爱吃鸡肉球 | http://m2.music.126.net/F_Tdm-OGOTBn2wV7fYdknw==/3203976883420686.mp3 17岁 | 西公子RoyalSeal | http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3 17岁 | 胡男 | http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3 17岁 | FingercontrolTop | http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3 17岁 | TXSF | http://m2.music.126.net/dyhCI9izH4Zpl3RIkZMrWQ==/3418381654237406.mp3 17岁 | OFarin | http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3 17岁 | 刘佳俊M | http://m2.music.126.net/j4SimJcgURVzAURkBNsXIg==/18531168976411812.mp3 17岁 | 不苦- | http://m2.music.126.net/hmZoNQaqzZALvVp0rE7faA==/0.mp3 17岁 | 郑小民 | http://m2.music.126.net/NYcqtVXfHB4f66kI8vIkrg==/18780758115811912.mp3 17岁 | 玄公馆 | http://m2.music.126.net/ADdrHRRuzBq8eQiNiuigDQ==/5643793185468284.mp3
运行OK, QR code有缺失,不过可以使用生成的实际图片文件,来登陆 网易云用户名登陆OK, 列表获取OK, 歌曲选择OK, 播放,显示正在播放,但是无声音输出。从log上看不出什么异常。 OMXplayer,是可以正常播放本地的MP3歌曲的,验证无问题。
不知道为什么这个微信选择歌曲无法播放了。