|
. l+ z$ g/ Q" W! Y L/ K(原文在这里)[https://stray.love/itshou-zha/wei-aria2-tian-jia-tracker-fu-wu-qi]5 s3 L4 m* S, d6 S
0 Q1 i! E2 h" y: z% g; `把下面脚本放入定时任务,然后通过rpc更新 ,简单方便快捷5 \: S6 e: D' z ^
. F2 C$ ^- w- D7 R' Z( Z" D. @# _) }5 D8 [# X
#!/bin/sh2 ^8 I+ v+ k" @1 n0 I5 B
#more trackers list, see https://github.com/ngosang/trackerslist
& m/ N3 z( r% l2 d) n& \/ ^
7 e, `5 k5 f' q) E0 F9 Z Ctracker_url='https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt'7 _# e/ O6 ^* {6 Y) W) t
path='http://10.10.10.5:6800/jsonrpc'7 U8 V. Y# `, `7 @
passwd='xxxxxx'- Q: E5 d( b- X1 B
( q+ U3 ?2 G5 T* a7 G* C! L
tracker=$(echo -n $(curl -s -L $tracker_url | sed 'N;s/\n//g') | tr ' ' ',')+ [9 }' R/ U, J" K: Y
[ -n "$tracker" ] && curl $path -d '{"jsonrpc":"2.0","method":"aria2.changeGlobalOption","id":"cron","params":["token:'$passwd'",{"bt-tracker":"'$tracker'"}]}'
k. x5 l8 J" j$ C2 b1 s' q2 S* U( s5 h3 X# b1 P) l/ g( _" `5 c
7 v* `5 i" V2 a5 v
1 }- v: d( F, i( z0 ]! j8 Z; J: M, {2 `' c
|
评分
-
查看全部评分
|