脚本scripts/sort.js
将files/torrents
中的种子按文件目录分类,并按hash值命名。有相同hash值的种子可以跳过检验直接辅种。
同时推荐安装cnpm
git clone https://github.com/enigmazack/torrent-file.git
cd torrent-file
npm install
进入项目目录,创建目录files/torrents
,将要处理的种子文件全部复制到此文件夹中。
node scripts/sort.js
自动分类并输出
CLEAN HASH FILES HASH
7FDE5EF65B3AA95BD50485CABEB61DB0CBCA09DF CB6348004D9ACEF53BD583B425396374C25189F7-landof.tv.torrent
48A79D3BAB21F9E57BCC14EF8551AF5DDE6EBFA9 6F1FE27CBDE4EF8AC9795E1A2C0456BC6C6E0E11-tracker.hdchina.org.torrent
7FDE5EF65B3AA95BD50485CABEB61DB0CBCA09DF CB6348004D9ACEF53BD583B425396374C25189F7-tracker.m-team.cc.torrent
7FDE5EF65B3AA95BD50485CABEB61DB0CBCA09DF CB6348004D9ACEF53BD583B425396374C25189F7-ourbits.club.torrent
CB2C13ACE229FA81411F305B20B0DCD3062E9E0A CB6348004D9ACEF53BD583B425396374C25189F7-tracker.pterclub.com.torrent
7FDE5EF65B3AA95BD50485CABEB61DB0CBCA09DF CB6348004D9ACEF53BD583B425396374C25189F7-tracker.totheglory.im.torrent
IYUU提供了一个不错的辅种比对库。
脚本scripts\iyuu\main.js
利用IYUU的API自动下种。
将scripts\iyuu\config-sample.json
复制为scripts\iyuu\config.json
并填充数据
{
"iyuuToken": "******",
"proxy": "http://127.0.0.1:8080",
"sites": {
"keepfrds": {
"enable": true,
"passkey": "******",
"useProxy": true
},
"m-team": {
"enable": true,
"passkey": "******",
"https": true,
"ipv6": false,
"useProxy": true
}
}
}
首先你需要有一个可用的iyuuToken
proxy
的设置是通过代理下载,需要开代理下载的站点设置为"useProxy": true
将你客户端的种子的info_hash,写入scripts\iyuu\hash-list.json
node scripts/iyuu/main.js
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\BE196483AB2C22C17D3926F0A7FF85C33E900821-pt.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\729F6C8ACEFE09C574342106A543881257F6A21B-pt.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\20BE2852B60AA812A5D3A2BBABAD0988A3F41F35-m-team.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\58CCC3B286A1BF4F4DE79681B881812363B88266-pter.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\4AC0B0FBF9ADAD161583904334DBF3718DDE5B37-m-team.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\C9B512AC4CE1CF83835E05755483635199A29C4D-hddolby.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\B50089FE3CAA6B5F6AEEC8BC510FC55FC44F1F6C-m-team.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\5226DD60FCEB86CBC01012B84E07A3BEA6E329BE-hddolby.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\4B9CF9EE8A4EAB7243889FBEF0C4F5DD07E7DA77-leaguehd.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\8F1145332459381353FCE9BC9AA6CA5BB186B32C-ttg.torrent
Donwload: D:\CODE\GitRepository\Enigmaz\torrent-file\files\torrents\8F60763A20AED2BBD77869448BE87654BC34557F-ttg.torrent
Request failed with status code 404: https://leaguehd.com/download.php?id=15278&passkey=******
随后可进一步运行scripts/sort.js
脚本进行分类