Add files via upload

This commit is contained in:
lesfox 2023-01-31 22:22:33 +08:00 committed by GitHub
parent f7ef285358
commit 953604b593
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
bt.sh Normal file
View file

@ -0,0 +1,17 @@
##!/bin/bash
## 列表文件名
LIST="tracker.txt"
## 临时文件处理
trap 'rm -f "${TMPFILE}"' EXIT
TMPFILE=$(mktemp)
## 获取列表内容并合并,可按照格式自行添加列表
curl -k {https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt,\
http://github.itzmx.com/1265578519/OpenTracker/master/tracker.txt,\
https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt,\
https://raw.githubusercontent.com/DeSireFire/animeTrackerList/master/AT_all.txt,\
https:trackerslist.com/all.txt\
https://www.yaozuopan.top/dynamic/trackerlist.txt,\
https://newtrackon.com/api/live,\
http://plugin.xl7.xunlei.com/7.9/normal/trackers.json} > ${TMPFILE}
## 对列表排序并去重
grep -Po '(udp|https?|wss?):\/\/.+?\/announce(\.php)?' ${TMPFILE} | sort -u -o ${LIST}