Skip to content

Latest commit

 

History

History
97 lines (71 loc) · 3.67 KB

使用指南.md

File metadata and controls

97 lines (71 loc) · 3.67 KB

使用指南

辅种分类脚本

脚本scripts/sort.jsfiles/torrents中的种子按文件目录分类,并按hash值命名。有相同hash值的种子可以跳过检验直接辅种。

安装node.js和git

同时推荐安装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自动下种

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

将你客户端的种子的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脚本进行分类