fgr178707

Results 54 comments of fgr178707

> 你的那个第2章那个是怎么导出的 手打的?

> 这个是由于没有 `Referer` 引起的访问拒绝. 你需要重新开一个`aria2c` 服务然后加上 `"Referer": "https://www.bilibili.com"`. `aria2c --enable-rpc --rpc-listen-port=6801 --header="Referer": "https://www.bilibili.com"` 如果不常用可以这样临时, 常用的话可以写成配置文件, 配置多线程等.... ![image](https://github.com/iawia002/lux/assets/109357981/0c7dab39-bd69-4d69-b604-f91cf0534471) 这样就可以了吗?

> 是的, 这样就运行在了本地的 6801 端口. 下载的时候使用 `--aria2-addr` 来指定端口 sample: `lux --aria2 --aria2-addr "localhost:6801" https://www.bilibili.com/video/BV1AN411H73x` 我想问一下,你上面说的写成配置文件 怎么写 能给个思路或者是模板吗

> 是的, 这样就运行在了本地的 6801 端口. 下载的时候使用 `--aria2-addr` 来指定端口 sample: `lux --aria2 --aria2-addr "localhost:6801" https://www.bilibili.com/video/BV1AN411H73x` 只下载音频,不下载视频怎么?

> 模板就是你直接写个`bat`文件放到`windows`文件夹下, 需要的时候直接 运行---> ar.bat 就启动了. > ```shell > 启动: > ar.bat > > aria2c --enable-rpc --rpc-listen-port=6801 --header="Referer": "https://www.bilibili.com" --dir=下载的文件夹 --split=8 > > 关闭: > ad.bat > curl "http://localhost:6801/jsonrpc?method=aria2.shutdown&id=0" 好的...

> 模板就是你直接写个`bat`文件放到`windows`文件夹下, 需要的时候直接 运行---> ar.bat 就启动了. > > ```shell > 启动: > ar.bat > > aria2c --enable-rpc --rpc-listen-port=6801 --header="Referer": "https://www.bilibili.com" --dir=下载的文件夹 --split=8 > > 关闭: > ad.bat > curl "http://localhost:6801/jsonrpc?method=aria2.shutdown&id=0"...

> 我这里测试了带cookie和不带cookie都是没有问题的, 有点小问题的是 aria2c --enable-rpc --rpc-listen-port=6801 --header="Referer":"https://www.bilibili.com" --dir=下载的文件夹 --split=8 把"Referer"冒号后面的空格去掉 不应该呀 中文路径的问题?

> 看你的显示还是请求问题, 或者可以换个版本试试 版本? 求一下你现在用的版本

> 最新版本: https://github.com/aria2/aria2/releases/tag/release-1.36.0 感谢 我刚刚试了一下,移除了中文路径,好像好了😂

@backuponeday 我想问一下这个命令`-n int`跟aria2c 有关系吗?