-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
已支持配置自定义网络歌单,在这里分享你的歌单 #78
Comments
可以使用 gist 来配置和分享 json 文件,比如 https://gist.github.com/hanxi/dda82d964a28f8110f8fba81c3ff8314 点击 raw 得到 json 文件的链接 https://gist.githubusercontent.com/hanxi/dda82d964a28f8110f8fba81c3ff8314/raw/8787844d81c39dbfaad4e37954dd449d8bba5728/example.json 当然还可以用其他工具分享json文件,比如 github 和国内的 gitee 。 |
已经有工具支持将 m3u 格式的电台文件转为网络歌单格式,见 #88 欢迎有兴趣的朋友制作其他格式转换工具,比如网易歌单那一类的。 |
按照教程设置后 播放列表选择m3u电台 再选择播放列表 歌曲,结果显示播放中 不断在转台 |
设备掉线了 |
加不加"type":"radio"都会一直播放不切换到下一首歌是为什么呢 |
发出来看看? |
仔细研究了一下,发现确实存在问题,不过是另一种情况,下面单说 |
这几天再仔细研究了一下,发现一个可能的原因:这样获取到的是m4a文件,我尝试着在json里配置获取到的m4a链接,发现播放同样也是无时长 |
获取歌曲时长确实有些格式获取不到。 |
http://m7.music.126.net/20241216093525/75c9080afa2929d7eec8e1cdbcbc0a92/yyaac/0709/535a/5358/0c6e2dcac3d0e9fa4415d22e1eca1337.m4a |
因为代码有问题。 |
好吧😂😂,大佬真是直接😁 |
重构方案 #314 |
设置页面新增一个输入框配置json格式,可以定义配置音乐源,可以是电台或者其他的m3u8格式的。
再加一个输入框配置这个json文件的url,点击获取按钮把url对应的json内容填充到json输入框,方便直接使用别人分享的歌单。
比如这样的链接
已经测试能播放出来:
预计歌单格式是这样的, type 为 radio 作为电台的设定,会一直播放当前电台,不会播放下一首。
这里分享一个让 chatgpt 写 python 脚本来生成歌单的例子 https://chatgpt.com/share/6751c019-74c0-800a-a978-a20c636d4464 。
The text was updated successfully, but these errors were encountered: