前言

下载工具配合Google Drive等网盘实现离线下载这方面算是本博客的传统艺能了。不管是什么下载工具,博主总喜欢研究往网盘上面靠一靠。

教程

这里还是要借助Rclone来进行操作
截至目前Rclone所支持的主流对象存储有:

 / 1Fichier
 / Alias for an existing remote
 / Amazon Drive
 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
 / Backblaze B2
 / Box
 / Cache a remote
 / Citrix Sharefile
 / Dropbox
 / Encrypt/Decrypt a remote
 / FTP Connection
 / Google Cloud Storage (this is not Google Drive)
 / Google Drive
 / Google Photos
 / Hubic
 / In memory object storage system.
 / JottaCloud
 / Koofr
 / Local Disk
 / Mail.ru Cloud
 / Mega
 / Microsoft Azure Blob Storage
 / Microsoft OneDrive
 / OpenDrive
 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
 / Pcloud
 / Put.io
 / QingCloud Object Storage
 / SSH/SFTP Connection
 / Sugarsync
 / Transparently chunk/split large files
 / Union merges the contents of several remotes
 / Webdav
 / Yandex Disk
 / http Connection
 / premiumize.me

1.配置Rclone
详见:Rclone安装教程 - 使用Rclone挂载Google Drive,OneDrive等网盘

2.配置Transmission
之前的Aria2由于下载文件的时候临时文件是存放在下载目录的,如果直接下载到Google Drive的挂载目录的话则会因为同步延迟的原因导致崩溃。所以需要使用第三方脚本来实现下载完后自动上传。
而Transmission则原生支持临时文件目录与下载目录分离。此时只需将临时文件目录设置为本地目录,下载目录设置为Google Drive挂载的目录即可。
这里以之前文章介绍的transmission-daemon为例:
参数设置

其它版本客户端也有类似的设置

如果实在找不到在哪里设置的话也可以修改配置目录下的settings.json配置文件:

"incomplete-dir": "临时文件目录",
"incomplete-dir-enabled": true, //是否启用临时目录,true为是

此时,Transmission会把临时文件下载到本地的临时目录下,当下载完成后则会自动上传到Rclone挂载的网盘中。

通过如此这般的操作,即可为普通网盘增加离线下载功能,配合Google Drive这类无限容量的网盘则更妙。

最后修改:2020 年 04 月 17 日 08 : 43 AM