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:
@@ -565,5 +565,13 @@ async def read():
|
|||||||
|
|
||||||
要不你问问ai吧,你缺少一个自定义指令干掉你这个死循环。
|
要不你问问ai吧,你缺少一个自定义指令干掉你这个死循环。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 评论 29 - thefreezoo
|
||||||
|
|
||||||
|
> 要不你问问ai吧,你缺少一个自定义指令干掉你这个死循环。
|
||||||
|
|
||||||
|
插件是同步调用的,需要把插件包装成任务放回当前事件循环,我把plugins.py异步调用那里直接改成在事件循环中执行,然后放回running_task,stop的时候在终止任务,这样就可以用关机命令了
|
||||||
|
|
||||||
---
|
---
|
||||||
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/105)
|
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/105)
|
||||||
|
|||||||
@@ -4,44 +4,44 @@ title: yt-dlp cookies 文件上传功能
|
|||||||
|
|
||||||
# yt-dlp cookies 文件上传功能
|
# yt-dlp cookies 文件上传功能
|
||||||
|
|
||||||
此功能用于解决 yt-dlp 下载资源失败时使用,比如 ip 被 B站或者 youtube 加入黑名单后才需要使用。
|
此功能用于解决 yt-dlp 下载资源失败时使用,比如 **ip 被 B站或者 youtube 加入黑名单**后才需要使用。
|
||||||
|
|
||||||
上传的文件用于 yt-dlp 的 `--cookies` 参数。
|
上传的文件用于 yt-dlp 的 `--cookies` 参数。
|
||||||
```
|
```
|
||||||
--cookies FILE Netscape formatted file to read cookies from
|
--cookies FILE Netscape formatted file to read cookies from
|
||||||
and dump cookie jar in
|
and dump cookie jar in
|
||||||
```
|
```
|
||||||
|
|
||||||
## 获取 cookies.txt 文件
|
## 获取 cookies.txt 文件
|
||||||
|
|
||||||
1. 下载插件 [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/cclelndahbckbenkjhflpdbgdldlbecc)
|
1. 下载插件 [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/cclelndahbckbenkjhflpdbgdldlbecc)
|
||||||
2. 给予插件访问权限和无痕模式允许使用
|
2. 给予插件访问权限和无痕模式允许使用
|
||||||

|

|
||||||
3. 打开无痕窗口
|
3. 打开无痕窗口
|
||||||
4. 打开 youtube.com
|
4. 打开 youtube.com
|
||||||
5. 登陆 youtube.com
|
5. 登陆 youtube.com
|
||||||
6. 打开新标签页
|
6. 打开新标签页
|
||||||
7. 关闭 youtube.com 的标签页
|
7. 关闭 youtube.com 的标签页
|
||||||
8. 保存 cookies.txt
|
8. 保存 cookies.txt
|
||||||

|

|
||||||
|
|
||||||
原因见 https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies
|
原因见 https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies
|
||||||
|
|
||||||
## 上传 cookies.txt
|
## 上传 cookies.txt
|
||||||
|
|
||||||
1. 打开设置页面
|
1. 打开设置页面
|
||||||
2. 设置启用yt-dlp-cookies 选项为 true
|
2. 设置启用yt-dlp-cookies 选项为 true
|
||||||

|

|
||||||
3. 点击保存
|
3. 点击保存
|
||||||
4. 再点击选择文件,选择前面保存好的 cookies.txt 文件,点击上传。
|
4. 再点击选择文件,选择前面保存好的 cookies.txt 文件,点击上传。
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## 后续用途
|
## 后续用途
|
||||||
|
|
||||||
1. 语音下载歌曲都会带上前面上传的 cookies.txt 文件去搜索下载歌曲。
|
1. 语音下载歌曲都会带上前面上传的 cookies.txt 文件去搜索下载歌曲。
|
||||||
2. 歌曲批量下载工具下载歌曲或者歌单时也会带上 cookies.txt 文件。
|
2. 歌曲批量下载工具下载歌曲或者歌单时也会带上 cookies.txt 文件。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 评论
|
## 评论
|
||||||
|
|||||||
@@ -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.
|
Reply to this email directly, view it on GitHub, or unsubscribe.
|
||||||
You are receiving this because you commented.Message ID: ***@***.***>
|
You are receiving this because you commented.Message ID: ***@***.***>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 评论 117 - 467815891a
|
||||||
|
|
||||||
|
Bilibili现在也需要cookies,建议作者大大改一下改一下说明。按照youtube那样上传cookies就行了
|
||||||
|
|
||||||
---
|
---
|
||||||
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/99)
|
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/99)
|
||||||
|
|||||||
Reference in New Issue
Block a user