Skip to content

fzfile/heroku-aria2c

 
 

Repository files navigation

原版的aria2在下载115文件的时候会因为403错误停止,导致115文件下载失败,myfreeer的可以在403错误重试的aria2没有linux版,所以自己编译了一个。 原作者地址是 https://github.com/myfreeer/aria2-build-msys2

替换了原作者里面的aria2为403错误可以重试的aria2

替换rclone为gclone以突破流量限制 需要设置SA文件

下载115文件时请将线程改为2,115一个文件最多支持2线程下载,多了反而会降低速度。

Heroku aria2c

Deploy

Do not overuse it, or your account might be banned by Heroku.

Optionally sync downloaded file to your cloud drive with Rclone

  1. Setup Rclone locally by following offical instructions: https://rclone.org/docs/
  2. Find your rclone.conf file, it should look like this:
[DRIVENAME]
type = WHATEVER
client_id = WHATEVER
client_secret = WHATEVER
scope = WHATEVER
token = WHATEVER

others entries...
  1. Find the drive you want to use, and copy its type = ... to ... token = ... section.
  2. Replace all linebreaks with \n
  3. Deploy with the button above, and paste that text in RCLONE_CONFIG
  4. Set RCLONE_DESTINATION to a path you want to store your downloaded files.

FAQ

It automatically stop after 30 minutes, and files were lost.

It is because Heroku's free dyno will idle when there is no incoming request within 30 minutes, and your files will be deleted too, this is why you might want to use Rclone.

Can I delete files?

No. Just wait for its idling, and your files will be deleted.

You said it will idle automatically, so I can't download large files?

It will generate fake requests when there are downloading or uploading tasks, so it won't idle when your files aren't completed.

I don't know how to setup Rclone, can you help me?

No. I thought the instructions above are enough.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 67.5%
  • Shell 17.3%
  • JavaScript 15.2%