|
|
7 h" ~/ `3 r2 g8 K0 x4 c
(原文在这里)[https://stray.love/itshou-zha/wei-aria2-tian-jia-tracker-fu-wu-qi]
- l' ]/ z, B; t( p; |, @& D
% M7 y: _! v) `/ [. e, ^6 l& M把下面脚本放入定时任务,然后通过rpc更新 ,简单方便快捷# |1 G9 @2 u% G8 ~% C
9 Z) v. q! O# \! h# V7 K: D
% |/ g2 T0 _' x5 i" \! t; a#!/bin/sh# [8 |7 j$ h3 X# G( V
#more trackers list, see https://github.com/ngosang/trackerslist6 a8 W4 U% U% j& [
: d3 M" v' ~, H+ L2 U( Itracker_url='https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt'
, k/ L0 m5 i9 a3 n- w* M4 bpath='http://10.10.10.5:6800/jsonrpc'; _' n; u! c, g
passwd='xxxxxx'
! w8 z" Q0 }4 E+ k8 ?+ R
, ?5 o6 Y2 K% O: V* Qtracker=$(echo -n $(curl -s -L $tracker_url | sed 'N;s/\n//g') | tr ' ' ',')) v! \$ F% h# f: R+ i3 v3 t
[ -n "$tracker" ] && curl $path -d '{"jsonrpc":"2.0","method":"aria2.changeGlobalOption","id":"cron","params":["token:'$passwd'",{"bt-tracker":"'$tracker'"}]}'
. G0 u" l% }) t1 ]( |1 m
1 H8 R8 x) _/ K2 C6 J B2 g0 P& A" F2 N N/ O* I! s
' t9 f4 ^. M/ k) T
% m3 k7 d- q. M {7 _. C: n3 e |
评分
-
查看全部评分
|