Comments (6)
国内使用的话配置好代理就行, XIAOMUSIC_PROXY 用于配置代理,默认为空,yt-dlp 工具下载歌曲会用到。
对小爱同学说:播放歌曲+歌曲名,就行了,本地找不到会自动使用 yt-dlp 去搜索下载的。
from xiaomusic.
国内使用的话配置好代理就行, XIAOMUSIC_PROXY 用于配置代理,默认为空,yt-dlp 工具下载歌曲会用到。
对小爱同学说:播放歌曲+歌曲名,就行了,本地找不到会自动使用 yt-dlp 去搜索下载的。
XIAOMUSIC_PROXY= -e
比如用的V2RAY
这里要怎么修改呢
from xiaomusic.
@cliya 要看你的v2ray客户端的配置的,局域网的v2ray客户端配好inbounds开启http端口。
比如这样配
"inbounds": [
{
"listen": "0.0.0.0",
"port": 8080,
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
那么 XIAOMUSIC_PROXY 就是 http://192.168.2.5:8080
192.168.2.5 是 v2ray 客户端所在机器的局域网ip
from xiaomusic.
- `
- 2024/03/09 09:02:19 | stdout |
- -- | -- | --
- 2024/03/09 09:02:19 | stdout | such file or directory: ''
- 2024/03/09 09:02:19 | stdout | mutagen.MutagenError: [Errno 2] No
- 2024/03/09 09:02:19 | stdout | raise MutagenError(e)
- 2024/03/09 09:02:19 | stdout | 272, in _openfile
- 2024/03/09 09:02:19 | stdout | ckages/mutagen/_util.py", line
- 2024/03/09 09:02:19 | stdout | "/app/.venv/lib/python3.10/site-pa
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | return next(self.gen)
- 2024/03/09 09:02:19 | stdout | lib.py", line 135, in enter
- 2024/03/09 09:02:19 | stdout | "/usr/local/lib/python3.10/context
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | filething, filename, fileobj,
- 2024/03/09 09:02:19 | stdout | with _openfile(None,
- 2024/03/09 09:02:19 | stdout | 162, in wrapper_func
- 2024/03/09 09:02:19 | stdout | ckages/mutagen/_util.py", line
- 2024/03/09 09:02:19 | stdout | "/app/.venv/lib/python3.10/site-pa
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | audio = mutagen.File(filename)
- 2024/03/09 09:02:19 | stdout | line 402, in get_file_duration
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | e))
- 2024/03/09 09:02:19 | stdout | int(self.get_file_duration(filenam
- 2024/03/09 09:02:19 | stdout | sec =
- 2024/03/09 09:02:19 | stdout | set_next_music_timeout
- 2024/03/09 09:02:19 | stdout | line 410, in
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | self.set_next_music_timeout()
- 2024/03/09 09:02:19 | stdout | line 508, in play
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | await func(arg1=oparg)
- 2024/03/09 09:02:19 | stdout | line 455, in run_forever
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | Traceback (most recent call last):
- 2024/03/09 09:02:19 | stdout |
- 2024/03/09 09:02:19 | stdout | occurred:
- 2024/03/09 09:02:19 | stdout | exception, another exception
- 2024/03/09 09:02:19 | stdout | During handling of the above
- 2024/03/09 09:02:19 | stdout |
- 2024/03/09 09:02:19 | stdout | such file or directory: ''
- 2024/03/09 09:02:19 | stdout | FileNotFoundError: [Errno 2] No
- 2024/03/09 09:02:19 | stdout | if writable else "rb")
- 2024/03/09 09:02:19 | stdout | fileobj = open(filename, "rb+"
- 2024/03/09 09:02:19 | stdout | 251, in _openfile
- 2024/03/09 09:02:19 | stdout | ckages/mutagen/_util.py", line
- 2024/03/09 09:02:19 | stdout | "/app/.venv/lib/python3.10/site-pa
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | Traceback (most recent call last):
- 2024/03/09 09:02:19 | stdout | directory: ''
- 2024/03/09 09:02:19 | stdout | WARNING 执行出错 [Errno 2] No such file or xiaomusic.py:457
- 2024/03/09 09:02:19 | stdout | INFO 已经开始播放了 xiaomusic.py:506
- 2024/03/09 09:02:19 | stdout | INFO 播放 http://192.168.0.39:8090/ xiaomusic.py:503
- 2024/03/09 09:02:19 | stdout | [03/09/24 01:02:19] INFO cur_music 奥特曼 xiaomusic.py:501
- 2024/03/09 09:02:19 | stdout | [download] Finished downloading playlist: 奥特曼
- 2024/03/09 09:02:19 | stdout | [BiliBili] 745273948: Downloading webpage
- 2024/03/09 09:02:19 | stderr | ERROR: Failed to parse: http://192.168.0.1:80index.asp/
- 2024/03/09 09:02:19 | stdout | [BiliBili] Extracting URL: http://www.bilibili.com/video/av745273948
- 2024/03/09 09:02:19 | stdout | [download] Downloading item 1 of 1
- 2024/03/09 09:02:19 | stdout | [BiliBiliSearch] Playlist 奥特曼: Downloading 1 items of 1
- 2024/03/09 09:02:18 | stdout | [BiliBiliSearch] 奥特曼: Extracting results from page 1
- 2024/03/09 09:02:18 | stdout | [download] Downloading playlist: 奥特曼
- `
这个是哪里设置错了吗? 我是NAS上装的docker ,配置的HOSTNAME是NAS的地址
- 2024/03/09 09:02:19 | stderr | ERROR: Failed to parse: http://192.168.0.1:80index.asp/
这一行ERROR 访问的路由器的地址,不知道在哪配置的
from xiaomusic.
from xiaomusic.
- `
- 2024/03/09 09:02:19 | stdout |
- -- | -- | --
- 2024/03/09 09:02:19 | stdout | such file or directory: ''
- 2024/03/09 09:02:19 | stdout | mutagen.MutagenError: [Errno 2] No
- 2024/03/09 09:02:19 | stdout | raise MutagenError(e)
- 2024/03/09 09:02:19 | stdout | 272, in _openfile
- 2024/03/09 09:02:19 | stdout | ckages/mutagen/_util.py", line
- 2024/03/09 09:02:19 | stdout | "/app/.venv/lib/python3.10/site-pa
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | return next(self.gen)
- 2024/03/09 09:02:19 | stdout | lib.py", line 135, in enter
- 2024/03/09 09:02:19 | stdout | "/usr/local/lib/python3.10/context
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | filething, filename, fileobj,
- 2024/03/09 09:02:19 | stdout | with _openfile(None,
- 2024/03/09 09:02:19 | stdout | 162, in wrapper_func
- 2024/03/09 09:02:19 | stdout | ckages/mutagen/_util.py", line
- 2024/03/09 09:02:19 | stdout | "/app/.venv/lib/python3.10/site-pa
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | audio = mutagen.File(filename)
- 2024/03/09 09:02:19 | stdout | line 402, in get_file_duration
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | e))
- 2024/03/09 09:02:19 | stdout | int(self.get_file_duration(filenam
- 2024/03/09 09:02:19 | stdout | sec =
- 2024/03/09 09:02:19 | stdout | set_next_music_timeout
- 2024/03/09 09:02:19 | stdout | line 410, in
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | self.set_next_music_timeout()
- 2024/03/09 09:02:19 | stdout | line 508, in play
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | await func(arg1=oparg)
- 2024/03/09 09:02:19 | stdout | line 455, in run_forever
- 2024/03/09 09:02:19 | stdout | "/app/xiaomusic/xiaomusic.py",
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | Traceback (most recent call last):
- 2024/03/09 09:02:19 | stdout |
- 2024/03/09 09:02:19 | stdout | occurred:
- 2024/03/09 09:02:19 | stdout | exception, another exception
- 2024/03/09 09:02:19 | stdout | During handling of the above
- 2024/03/09 09:02:19 | stdout |
- 2024/03/09 09:02:19 | stdout | such file or directory: ''
- 2024/03/09 09:02:19 | stdout | FileNotFoundError: [Errno 2] No
- 2024/03/09 09:02:19 | stdout | if writable else "rb")
- 2024/03/09 09:02:19 | stdout | fileobj = open(filename, "rb+"
- 2024/03/09 09:02:19 | stdout | 251, in _openfile
- 2024/03/09 09:02:19 | stdout | ckages/mutagen/_util.py", line
- 2024/03/09 09:02:19 | stdout | "/app/.venv/lib/python3.10/site-pa
- 2024/03/09 09:02:19 | stdout | File
- 2024/03/09 09:02:19 | stdout | Traceback (most recent call last):
- 2024/03/09 09:02:19 | stdout | directory: ''
- 2024/03/09 09:02:19 | stdout | WARNING 执行出错 [Errno 2] No such file or xiaomusic.py:457
- 2024/03/09 09:02:19 | stdout | INFO 已经开始播放了 xiaomusic.py:506
- 2024/03/09 09:02:19 | stdout | INFO 播放 http://192.168.0.39:8090/ xiaomusic.py:503
- 2024/03/09 09:02:19 | stdout | [03/09/24 01:02:19] INFO cur_music 奥特曼 xiaomusic.py:501
- 2024/03/09 09:02:19 | stdout | [download] Finished downloading playlist: 奥特曼
- 2024/03/09 09:02:19 | stdout | [BiliBili] 745273948: Downloading webpage
- 2024/03/09 09:02:19 | stderr | ERROR: Failed to parse: http://192.168.0.1:80index.asp/
- 2024/03/09 09:02:19 | stdout | [BiliBili] Extracting URL: http://www.bilibili.com/video/av745273948
- 2024/03/09 09:02:19 | stdout | [download] Downloading item 1 of 1
- 2024/03/09 09:02:19 | stdout | [BiliBiliSearch] Playlist 奥特曼: Downloading 1 items of 1
- 2024/03/09 09:02:18 | stdout | [BiliBiliSearch] 奥特曼: Extracting results from page 1
- 2024/03/09 09:02:18 | stdout | [download] Downloading playlist: 奥特曼
- `
这个是哪里设置错了吗? 我是NAS上装的docker ,配置的HOSTNAME是NAS的地址
- 2024/03/09 09:02:19 | stderr | ERROR: Failed to parse: http://192.168.0.1:80index.asp/
这一行ERROR 访问的路由器的地址,不知道在哪配置的
是 HOSTNAME 是配置为 192.168.0.39 吗?8090端口转发出来了吗?
from xiaomusic.
Related Issues (20)
- 能否给web控制界面加个访问密码? HOT 1
- 关于登陆和 播放问题 HOT 3
- 已经测试L05B,可以web界面控制音量,但是无法播放 HOT 2
- 支持在网页控制台设置必要参数
- 支持播放列表
- 播放歌曲口令支持模糊搜索
- 小爱音箱app无法连接音箱,音箱显示为离线状态 HOT 5
- 默认音量支持可配置 HOT 1
- 【bug】0.128 web控制台,关机指令已失效 HOT 1
- 【bug】0.128 web控制台,关机指令已失效 HOT 4
- 唤醒小爱 使用关键词 播放歌曲+歌曲名时,小爱会先提示请先绑定音乐app,然后突然跳到正在下载歌曲 HOT 3
- 日志里带上版本信息 HOT 1
- 本地歌曲模糊搜索问题 HOT 5
- 无法安装 HOT 3
- [0.1.32] WARNING: This is a _internal.py:96 development server. Do not use it in a production deployment. Use a production WSGI server instead.
- XIAOMUSIC_PROXY 怎么填 从油管下载音乐下不下来 HOT 2
- 删除指定文件名/正在播放文件功能 HOT 1
- 同一个docker支持几个型号的小爱 HOT 3
- 目前不同通过语音指令播放NAS中歌曲,只能通过web控制页面进行播放及下载 HOT 3
- 使用基础设置,启动失败 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xiaomusic.