|
+ n3 l: R. k3 X/ A4 d0 ~(原文在这里)[https://stray.love/itshou-zha/wei-aria2-tian-jia-tracker-fu-wu-qi]
# D1 U# C+ Q: w; u& L* O0 P1 b0 H& d, n3 v7 \3 [! B( \! o0 d* j
把下面脚本放入定时任务,然后通过rpc更新 ,简单方便快捷" ?2 A' f9 N& Z2 f+ J3 V1 U
$ v0 y2 b3 ~! m
3 D/ q% X7 F, I9 r' D: s2 j#!/bin/sh
$ D6 O9 ?/ ^( y* C#more trackers list, see https://github.com/ngosang/trackerslist
2 \& Q1 |& p7 ^1 h. A" L' z! K) g0 [& q1 m! P9 j8 R# d: I
tracker_url='https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt'6 v9 N' l$ k* f2 D
path='http://10.10.10.5:6800/jsonrpc'
3 X5 C1 V9 Y+ H' d" Mpasswd='xxxxxx'
& [: w% o- Z3 A, _. t! r2 E% [$ L3 v5 J; x" @6 `8 r e3 C+ w
tracker=$(echo -n $(curl -s -L $tracker_url | sed 'N;s/\n//g') | tr ' ' ','): m6 Q+ i. R( B" q- u5 @1 e' J/ X
[ -n "$tracker" ] && curl $path -d '{"jsonrpc":"2.0","method":"aria2.changeGlobalOption","id":"cron","params":["token:'$passwd'",{"bt-tracker":"'$tracker'"}]}'
& ]( }' Q- ^: @3 ~' r
: w, k7 ?2 p" U i$ C c7 s( D4 }6 i3 E& c: }# {
; W9 R. i, v. k: H# w* ]8 s1 j5 o
( m r$ R# K( S8 q( {* L! j
|
评分
-
查看全部评分
|