1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-13 15:58:13 +08:00

Auto-Generate docs 🤖

This commit is contained in:
Issues Docs [BOT]
2025-08-14 15:10:16 +00:00
parent b1e2667fad
commit 8246ebf74d
3 changed files with 52 additions and 38 deletions

View File

@@ -565,5 +565,13 @@ async def read():
要不你问问ai吧你缺少一个自定义指令干掉你这个死循环。
---
### 评论 29 - thefreezoo
> 要不你问问ai吧你缺少一个自定义指令干掉你这个死循环。
插件是同步调用的需要把插件包装成任务放回当前事件循环我把plugins.py异步调用那里直接改成在事件循环中执行然后放回running_taskstop的时候在终止任务,这样就可以用关机命令了
---
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/105)

View File

@@ -4,44 +4,44 @@ title: yt-dlp cookies 文件上传功能
# yt-dlp cookies 文件上传功能
此功能用于解决 yt-dlp 下载资源失败时使用,比如 ip 被 B站或者 youtube 加入黑名单后才需要使用。
上传的文件用于 yt-dlp 的 `--cookies` 参数。
```
--cookies FILE Netscape formatted file to read cookies from
and dump cookie jar in
```
## 获取 cookies.txt 文件
1. 下载插件 [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/cclelndahbckbenkjhflpdbgdldlbecc)
2. 给予插件访问权限和无痕模式允许使用
![image](https://gproxy.hanxi.cc/proxy/user-attachments/assets/89f6ce94-bb51-4805-8c16-a867ba41e5d2)
3. 打开无痕窗口
4. 打开 youtube.com
5. 登陆 youtube.com
6. 打开新标签页
7. 关闭 youtube.com 的标签页
8. 保存 cookies.txt
![image](https://gproxy.hanxi.cc/proxy/user-attachments/assets/64242595-7b5c-4159-a8bc-4fc922d5de9e)
原因见 https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies
## 上传 cookies.txt
1. 打开设置页面
2. 设置启用yt-dlp-cookies 选项为 true
![Screenshot_2024-09-29-22-31-40-134_com android chrome-edit](https://gproxy.hanxi.cc/proxy/user-attachments/assets/49760905-475b-493c-9ff4-271c5e797b2f)
3. 点击保存
4. 再点击选择文件,选择前面保存好的 cookies.txt 文件,点击上传。
![Screenshot_2024-09-29-22-33-21-361_com android chrome-edit](https://gproxy.hanxi.cc/proxy/user-attachments/assets/838bfd1c-f19f-4690-86b0-8208d596fbf1)
## 后续用途
1. 语音下载歌曲都会带上前面上传的 cookies.txt 文件去搜索下载歌曲。
2. 歌曲批量下载工具下载歌曲或者歌单时也会带上 cookies.txt 文件。
此功能用于解决 yt-dlp 下载资源失败时使用,比如 **ip 被 B站或者 youtube 加入黑名单**后才需要使用。
上传的文件用于 yt-dlp 的 `--cookies` 参数。
```
--cookies FILE Netscape formatted file to read cookies from
and dump cookie jar in
```
## 获取 cookies.txt 文件
1. 下载插件 [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/cclelndahbckbenkjhflpdbgdldlbecc)
2. 给予插件访问权限和无痕模式允许使用
![image](https://gproxy.hanxi.cc/proxy/user-attachments/assets/89f6ce94-bb51-4805-8c16-a867ba41e5d2)
3. 打开无痕窗口
4. 打开 youtube.com
5. 登陆 youtube.com
6. 打开新标签页
7. 关闭 youtube.com 的标签页
8. 保存 cookies.txt
![image](https://gproxy.hanxi.cc/proxy/user-attachments/assets/64242595-7b5c-4159-a8bc-4fc922d5de9e)
原因见 https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies
## 上传 cookies.txt
1. 打开设置页面
2. 设置启用yt-dlp-cookies 选项为 true
![Screenshot_2024-09-29-22-31-40-134_com android chrome-edit](https://gproxy.hanxi.cc/proxy/user-attachments/assets/49760905-475b-493c-9ff4-271c5e797b2f)
3. 点击保存
4. 再点击选择文件,选择前面保存好的 cookies.txt 文件,点击上传。
![Screenshot_2024-09-29-22-33-21-361_com android chrome-edit](https://gproxy.hanxi.cc/proxy/user-attachments/assets/838bfd1c-f19f-4690-86b0-8208d596fbf1)
## 后续用途
1. 语音下载歌曲都会带上前面上传的 cookies.txt 文件去搜索下载歌曲。
2. 歌曲批量下载工具下载歌曲或者歌单时也会带上 cookies.txt 文件。
## 评论

View File

@@ -1800,5 +1800,11 @@ nalytics.py:111: Execption Cannot connect to host umami.hanxi.cc:443 ssl:default
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
---
### 评论 117 - 467815891a
Bilibili现在也需要cookies建议作者大大改一下改一下说明。按照youtube那样上传cookies就行了
---
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/99)