Code Monkey home page Code Monkey logo

Comments (19)

backuponeday avatar backuponeday commented on June 3, 2024

这个是由于没有 Referer 引起的访问拒绝. 你需要重新开一个aria2c 服务然后加上 "Referer": "https://www.bilibili.com".
aria2c --enable-rpc --rpc-listen-port=6801 --header="Referer": "https://www.bilibili.com"
如果不常用可以这样临时, 常用的话可以写成配置文件, 配置多线程等....

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

这个是由于没有 Referer 引起的访问拒绝. 你需要重新开一个aria2c 服务然后加上 "Referer": "https://www.bilibili.com". aria2c --enable-rpc --rpc-listen-port=6801 --header="Referer": "https://www.bilibili.com" 如果不常用可以这样临时, 常用的话可以写成配置文件, 配置多线程等....

image
这样就可以了吗?

from lux.

backuponeday avatar backuponeday commented on June 3, 2024

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

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

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

我想问一下,你上面说的写成配置文件 怎么写 能给个思路或者是模板吗

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

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

只下载音频,不下载视频怎么?

from lux.

backuponeday avatar backuponeday commented on June 3, 2024

模板就是你直接写个bat文件放到windows文件夹下, 需要的时候直接 运行---> ar.bat 就启动了.

启动:
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" 

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

模板就是你直接写个bat文件放到windows文件夹下, 需要的时候直接 运行---> ar.bat 就启动了.

启动:
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" 

好的 我明天试一下

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

模板就是你直接写个bat文件放到windows文件夹下, 需要的时候直接 运行---> ar.bat 就启动了.

启动:
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" 

只下载音频,不下载视频怎么办
image
lux -c bilibili --aria2 --aria2-addr "localhost:6801" https://www.bilibili.com/video/BV1AN411H73x

from lux.

backuponeday avatar backuponeday commented on June 3, 2024

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

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

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

不应该呀
中文路径的问题?

from lux.

backuponeday avatar backuponeday commented on June 3, 2024

看你的显示还是请求问题, 或者可以换个版本试试

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

看你的显示还是请求问题, 或者可以换个版本试试

版本?
求一下你现在用的版本

from lux.

backuponeday avatar backuponeday commented on June 3, 2024

最新版本:
https://github.com/aria2/aria2/releases/tag/release-1.36.0

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

最新版本: https://github.com/aria2/aria2/releases/tag/release-1.36.0

感谢
我刚刚试了一下,移除了中文路径,好像好了😂

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

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

from lux.

backuponeday avatar backuponeday commented on June 3, 2024

没关系, 已经移交给aria2c了

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

没关系, 已经移交给aria2c了

我问一下FFmpeg 视频和音频合并的那个命令是哪个

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

FFmpeg

ffmpeg -i video.mp4 -i audio.mp3 -c:v copy -c:a aac -strict experimental output.mp4
这个命令?

from lux.

fgr178707 avatar fgr178707 commented on June 3, 2024

@backuponeday aria2我现在用配置文件 不用命令 我应该怎么改配置文件

配置文件如下:

## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 ##
## 被注释的选项填写的是默认值, 建议在需要修改时再取消注释  ##

## 文件保存相关 ##

# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置
dir=.\Download
# 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M
disk-cache=32M
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc
# 预分配所需时间: none < falloc ? trunc < prealloc
# falloc和trunc则需要文件系统和内核支持
# NTFS建议使用falloc, EXT3/4建议trunc, MAC 下需要注释此项
file-allocation=falloc
# 断点续传
continue=true

## 下载连接相关 ##

# 最大同时下载任务数, 运行时可修改, 默认:5
max-concurrent-downloads=5
# 同一服务器连接数, 添加时可指定, 最大:16
max-connection-per-server=16
# 最小文件分片大小, 添加时可指定, 取值范围1M -1024M, 默认:20M
# 假定size=10M, 文件为20MiB 则使用两个来源下载; 文件为15MiB 则使用一个来源下载
#min-split-size=10M
# 单个任务最大线程数, 添加时可指定, 默认:5
split=32
# 整体下载速度限制, 运行时可修改, 默认:0
#max-overall-download-limit=0
# 单个任务下载速度限制, 默认:0
#max-download-limit=0
# 整体上传速度限制, 运行时可修改, 默认:0
#max-overall-upload-limit=0
# 单个任务上传速度限制, 默认:0
#max-upload-limit=0
# 禁用IPv6, 默认:false
disable-ipv6=true

## 进度保存相关 ##

# 从会话文件中读取下载任务
input-file=aria2.session
# 在Aria2退出时保存`错误/未完成`的下载任务到会话文件
save-session=aria2.session
# 定时保存会话, 0为退出时才保存(此处需要设置,否则失去自动保存), 需1.16.1以上版本, 默认:0
save-session-interval=60

## RPC相关设置 ##

# 启用RPC, 默认:false
enable-rpc=true
# 允许所有来源, 默认:false
rpc-allow-origin-all=true
# 允许非外部访问, 默认:false
rpc-listen-all=true
# 事件轮询方式, 取值:[epoll, kqueue, port, poll, select], 不同系统默认值不同
#event-poll=select
# RPC监听端口, 端口被占用时可以修改, 默认:6800
rpc-listen-port=6801

## BT/PT下载相关 ##

# 当下载的是一个种子(以.torrent结尾)时, 自动开始BT任务, 默认:true
#follow-torrent=true
# BT监听端口, 当端口被屏蔽时使用, 默认:6881-6999
listen-port=51413
# 单个种子最大连接数, 默认:55
#bt-max-peers=55
# 打开DHT功能, PT需要禁用, 默认:true
#enable-dht=false
# 打开IPv6 DHT功能, PT需要禁用
#enable-dht6=false
# DHT网络监听端口, 默认:6881-6999
#dht-listen-port=6881-6999
# 本地节点查找, PT需要禁用, 默认:false
#bt-enable-lpd=false
# 种子交换, PT需要禁用, 默认:true
#enable-peer-exchange=false
# 每个种子限速, 对少种的PT很有用, 默认:50K
#bt-request-peer-speed-limit=50K
# 客户端伪装, PT需要
peer-id-prefix=-TR2770-
user-agent=Transmission/2.77
# 当种子的分享率达到这个数时, 自动停止做种, 0为一直做种, 默认:1.0
#seed-ratio=0
# 强制保存会话, 即使任务已经完成, 默认:false
# 较新的版本开启后会在任务完成后依然保留.aria2文件
#force-save=true
# BT校验相关, 默认:true
#bt-hash-check-seed=true
# 继续之前的BT任务时, 无需再次校验, 默认:false
bt-seed-unverified=true
# 保存磁力链接元数据为种子文件(.torrent文件), 默认:false
bt-save-metadata=true

# bt-tracker 更新,解决Aria2 BT下载速度慢没速度的问题
# https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt
bt-tracker=http://p4p.arenabg.com:1337/announce,udp://tracker.opentrackr.org:1337/announce,udp://9.rarbg.com:2810/announce,udp://tracker.openbittorrent.com:6969/announce,udp://exodus.desync.com:6969/announce,http://openbittorrent.com:80/announce,udp://www.torrent.eu.org:451/announce,udp://tracker.torrent.eu.org:451/announce,udp://retracker.lanta-net.ru:2710/announce,udp://open.stealth.si:80/announce,udp://wassermann.online:6969/announce,udp://vibe.sleepyinternetfun.xyz:1738/announce,udp://vibe.community:6969/announce,udp://udp-tracker.shittyurl.org:6969/announce,udp://u.wwwww.wtf:1/announce,udp://tracker1.bt.moack.co.kr:80/announce,udp://tracker0.ufibox.com:6969/announce,udp://tracker.zerobytes.xyz:1337/announce,udp://tracker.uw0.xyz:6969/announce,udp://tracker.tiny-vps.com:6969/announce

from lux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.