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

播放alist直链的音乐失败 #349

Closed
wxory opened this issue Jan 4, 2025 · 10 comments
Closed

播放alist直链的音乐失败 #349

wxory opened this issue Jan 4, 2025 · 10 comments

Comments

@wxory
Copy link

wxory commented Jan 4, 2025

参考文档创建了如下结构的歌单,挂载的是网易云音乐网盘,通过浏览器下载可以正常下载,网页也可以正常读取

[
    {
        "name": "云盘",
        "musics": [
            {
                "name": "方大同 - 黑洞里(Live).flac",
                "url": "http://192.168.0.120:5244/netease/方大同%20-%20黑洞里(Live).flac",
                "type": "radio"
            },
      ]
}
]

图片

@hanxi
Copy link
Owner

hanxi commented Jan 4, 2025

json 格式不合法,可以去 https://json.cn 里检查一下。另外歌曲不要加 radio 。

@wxory
Copy link
Author

wxory commented Jan 4, 2025

json 格式不合法,可以去 https://json.cn 里检查一下。另外歌曲不要加 radio 。

https://gist.github.com/wxory/876193e6b902c5c5bc51ed6bb8a795a7
您再看下,这样依旧播放不了

@hanxi
Copy link
Owner

hanxi commented Jan 4, 2025

你把 url 复现到测试链接那里能播放吗?

@hanxi
Copy link
Owner

hanxi commented Jan 4, 2025

是不是不支持 flac 格式?

@wxory
Copy link
Author

wxory commented Jan 4, 2025

是不是不支持 flac 格式?

mp3格式也试过了,依旧不行

@hanxi
Copy link
Owner

hanxi commented Jan 4, 2025

Screenshot_2025-01-04-20-04-34-655_com android chrome

复制到这里能播放吗?

@wxory
Copy link
Author

wxory commented Jan 4, 2025

Screenshot_2025-01-04-20-04-34-655_com android chrome

复制到这里能播放吗?

刚试了一下,从这里可以

@wxory
Copy link
Author

wxory commented Jan 4, 2025

@hanxi
Copy link
Owner

hanxi commented Jan 4, 2025

那估计是歌名的问题吧,你用 urlencode 编码试试?

@wxory
Copy link
Author

wxory commented Jan 4, 2025

确实是编码问题,感谢,已解决

那估计是歌名的问题吧,你用 urlencode 编码试试?

@wxory wxory closed this as completed Jan 4, 2025
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