├── CNAME ├── README.md ├── css └── index.css ├── index.html └── js └── index.js /CNAME: -------------------------------------------------------------------------------- 1 | tk.sleele.com -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Aria2-Trackers 2 | ## 自动获取tracker文件并转换为Aria2可用格式 3 | 国外:https://tk.sleele.com 4 | 5 | 国内:https://sleele.gitee.io/aria2-trackers/ 6 | 7 | ### 另外推荐一下我制作的docker-aria2 8 | 支持自动更新trackers及诸多扩展功能 9 | 目前唯一支持自定义二级或多级目录的docker-aria2 10 | https://github.com/SuperNG6/docker-aria2 11 | https://hub.docker.com/r/superng6/aria2 12 | 13 | ## 2020.10.15日更新 14 | 15 | 1、将数据源地址更改为jsdelivr cdn地址,现在国内访问速度大大提升,应该不会再出现无法获取trackers的情况了 16 | 2、添加XIU2/TrackersListCollection trackers数据源,推荐使用,tracker数量更多,且更符合国情,包含更多国内站点 17 | 18 | Aria2下载BT和磁力经常会遇到没有速度这个问题,配置Trackers可以很大程度减少这种情况,并且可以加快BT下载速度,由于ngosang/trackerslist https://github.com/ngosang/trackerslist 给出的list Aria2是不能够直接解析的,需要稍作处理,于是便有了此工具,此工具基于kooolshare论坛的'898028948'释放的源码制作(http://koolshare.cn/forum.php?mod=viewthread&tid=139749&highlight=Trackers ),不过由于源码没有完全放出,无法运行。我做了一些补充完善,使之可以正常运行 19 | 20 | 21 | 使用教程:https://sleele.com/2019/05/12/aria2-trackers/ 22 | ![Xnip2020-10-15_15-37-37](https://cdn.jsdelivr.net/gh/SuperNG6/pic@master/uPic/2020-10-15/Xnip2020-10-15_15-37-37.png) 23 | -------------------------------------------------------------------------------- /css/index.css: -------------------------------------------------------------------------------- 1 | * {font-family:"微软雅黑";} 2 | body {background:#fff;} 3 | input {cursor:pointer;} 4 | .ti {margin:0;padding:20px 0;line-height:30px;color:#333;} 5 | .ti a {color:#255359;} 6 | #trackertext {display:block;margin:0 auto;background:#255359;word-wrap:break-word;padding:15px;color:#fff;border-radius:2px; } 7 | .mantop {text-align:center;background-color:#fff;height:30px;line-height:30px;color:#255359;font-weight:500;border-bottom:1px solid rgba(0,0,0,0.22);padding:5px 0;} 8 | .mantop h1 {display:inline;font-size:20px;} 9 | .mantop a {color:#255359;text-decoration:none;} 10 | .wordback {width:100%;height:100%;text-align:center;background-repeat:repeat-x;} 11 | .tab {width:350px;margin:5px auto;background:#33A6B8;position:relative;padding:5px 15px;color:#fff;text-align:left;} 12 | .tab>input {position:absolute;right:0;margin-top:-2px;margin-right:3px;background:#0089A7;width:80px;color:#fff;height:25px;border:none;outline:none;} 13 | .tab>input:active {background:#255359;} 14 | #bucopy {margin-top:20px;width:120px;height:35px;background:#6A4C9C;color:#fff;border:none;outline:none;} 15 | #bucopy:active {background:#562E37} 16 | #trackercopy { width: 0; height:0;position: absolute; opacity: 0;filter:alpha(opacity=0);} 17 | .man_tk_text{ position: relative;width:80%;margin:5px auto;} 18 | #icos{ width:30px ;opacity: 0; height:30px;color:#fff ;background:#6A4C9C;z-index:100; display: block;position: absolute; right:-12px; top:-12px; border-radius:30px; font-style: inherit ; line-height:30px; text-align: center; font-size:14px;font-weight:700;} 19 | #modal-coupon{ opacity: 0; } 20 | .modal-overlay{background:rgba(248,249,250,.75); z-index: 10;cursor:default;;position:absolute;right:0;top:0;left:0;bottom:0;} 21 | .mian{ width: 100%; height: 100%; background: #255359;} 22 | .modal-title{ text-align: center; font-size: 20px; margin:5px 0;} 23 | .imgs{ width: 273px; margin: 0 auto; display: table;} 24 | .content{ text-align: center; margin-bottom:10px;} 25 | .container{width:300px;z-index: 20; height:330px;position: fixed; left:38%; top:20%; background: #fff; border-radius:5px; padding:5px; -moz-box-shadow:2px 2px 5px #333333; -webkit-box-shadow:2px 2px 5px #333333; box-shadow:2px 2px 5px #333333;} 26 | .butin{background:#D0104C;font-size: 12px; border: 0; text-align: center; width:20px; height:200px; border-radius:2px; padding:3px 0; color: #fff; cursor: pointer; margin:5px; opacity: 0.5;} 27 | .butin:hover{ opacity: 1;} 28 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Aria2-Trackers 7 | 8 | 9 | 10 | 11 | 12 |
13 |

Aria2-BT服务器地址

14 |
15 |

trackers列表来自 16 | ngosang/trackerslist 17 | XIU2/TrackersListCollection 18 |
本项目源代码 19 | Aria2-Trackers 20 |
Docker Aria2的最佳实践 21 | Docker-Aria2 22 |
博客 23 | sleele的博客 24 |
此列表不一定保证有速度,没速度可以试试改下监听端口。

25 |
26 | trackers_best 27 |
28 |
29 | XIU2_trackers_best (精选) 30 |
31 |
32 | trackers_all 33 |
34 |
35 | XIU2_trackers_all (数量最多) 36 |
37 |
38 | trackers_all_udp 39 |
40 |
41 | trackers_all_http 42 |
43 |
44 | trackers_all_https 45 |
46 |
47 | trackers_all_ws 48 |
49 |
50 | trackers_best_ip (理论上比域名的快) 51 |
52 |
53 | trackers_all_ip 54 |
55 |

推荐使用XIU2_trackers,包含更多国内站点

56 |
57 | XIU2_trackers_best 58 |
59 |
60 | XIU2_trackers_all (推荐) 61 |
62 | 63 |
64 | 0 65 |

trackerslist生成的位置

66 |
67 | 68 |
69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /js/index.js: -------------------------------------------------------------------------------- 1 | var xmlhttp; 2 | var trackertext = document.getElementById("trackertext"); 3 | var icos = document.getElementById("icos"); 4 | var butims= document.getElementById('modal-coupon'); 5 | function butim(){ 6 | fadeIn(butims); 7 | } 8 | function closes(){ 9 | butims.style.display='none'; 10 | } 11 | function loadXMLDoc(url) { 12 | xmlhttp = null; 13 | if(window.XMLHttpRequest) { // code for Firefox, Opera, IE7, etc. 14 | xmlhttp = new XMLHttpRequest(); 15 | } else if(window.ActiveXObject) { // code for IE6, IE5 16 | xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 17 | } 18 | if(xmlhttp != null) { 19 | xmlhttp.onreadystatechange = state_Change; 20 | xmlhttp.open("GET", url, true); 21 | xmlhttp.send(null); 22 | } else { 23 | alert("Your browser does not support XMLHTTP."); 24 | } 25 | } 26 | 27 | function state_Change() { 28 | if(xmlhttp.readyState == 4) { // 4 = "loaded" 29 | if(xmlhttp.status == 200) { // 200 = "OK" 30 | var ch = "announce"; 31 | var reg = "/" + ch + "/g"; 32 | var ckok = "announce,"; 33 | var aria2text = xmlhttp.responseText; 34 | var teix=aria2text.split(ch), 35 | aria2text = aria2text.replace(/\s/g, ""); 36 | var aria2text_ok = aria2text.replace(eval(reg), ckok); 37 | aria2text_ok = aria2text_ok.substring(0, aria2text_ok.length - 1); 38 | trackertext.innerHTML = aria2text_ok; 39 | if(icos.innerText==="0") 40 | { 41 | icos.innerText=teix.length-1; 42 | fadeIn(icos); 43 | } 44 | else{ 45 | icos.innerText=teix.length-1; 46 | } 47 | 48 | } else { 49 | trackertext.innerHTML = "Github源站点访问出错"; 50 | } 51 | } 52 | } 53 | function copyUrl2() { 54 | var trackercopy = document.getElementById("trackercopy"); 55 | trackertext = document.getElementById("trackertext"); 56 | var bucopy = document.getElementById("bucopy"); 57 | trackercopy.value = trackertext.innerText; 58 | console.log(trackercopy.value) 59 | trackercopy.select(); 60 | document.execCommand("Copy", "false",null); 61 | bucopy.value = '已复制好,可贴粘'; 62 | setTimeout(function() { 63 | bucopy.value = '点击复制' 64 | }, 65 | 3000); 66 | } 67 | 68 | function fadeIn(el) { 69 | el.style.opacity = 0; 70 | el.style.display=""; 71 | 72 | var last = +new Date(); 73 | var tick = function() { 74 | el.style.opacity = +el.style.opacity + (new Date() - last)/800; 75 | last = +new Date(); 76 | if (+el.style.opacity < 1) { 77 | (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16); 78 | } 79 | }; 80 | tick(); 81 | } 82 | --------------------------------------------------------------------------------