Skip to content

Commit

Permalink
feat: 修改日志文件的默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Dec 2, 2024
1 parent 87fb34e commit ecce5c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xiaomusic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Config:
"XIAOMUSIC_USE_MUSIC_AUDIO_ID", "1582971365183456177"
)
use_music_id: str = os.getenv("XIAOMUSIC_USE_MUSIC_ID", "355454500")
log_file: str = os.getenv("XIAOMUSIC_LOG_FILE", "/tmp/xiaomusic.txt")
log_file: str = os.getenv("XIAOMUSIC_LOG_FILE", "xiaomusic.log.txt")
# 模糊搜索匹配的最低相似度阈值
fuzzy_match_cutoff: float = float(os.getenv("XIAOMUSIC_FUZZY_MATCH_CUTOFF", "0.6"))
# 开启模糊搜索
Expand Down
2 changes: 1 addition & 1 deletion xiaomusic/static/default/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2>小爱音箱设置面板
<input id="ffmpeg_location" type="text" value="./ffmpeg/bin" />

<label for="log_file">日志路径:</label>
<input id="log_file" type="text" value="/tmp/xiaomusic.txt" />
<input id="log_file" type="text" value="xiaomusic.log.txt" />

<label for="active_cmd">允许唤醒的命令:</label>
<input id="active_cmd" type="text" value="play,random_play,playlocal,play_music_list,stop" />
Expand Down

0 comments on commit ecce5c8

Please sign in to comment.