|
| 1 | +echo off |
| 2 | +rem Test trackereditor.exe via command line. |
| 3 | + |
| 4 | +rem Console parameter: -U0 |
| 5 | +rem Insert new trackers list BEFORE, the original trackers list inside the torrent file. |
| 6 | +rem And remove possible duplicated trackers from the ORIGINAL trackers list. |
| 7 | + |
| 8 | +SETLOCAL |
| 9 | + |
| 10 | +rem clean all torrent trackers |
| 11 | +call dht_torrent.bat |
| 12 | + |
| 13 | +rem default variables |
| 14 | +call variables.bat |
| 15 | + |
| 16 | +rem add some ORIGINAL trackers |
| 17 | +echo %t_d%> %add_trackers_txt% |
| 18 | +echo %t_a%>> %add_trackers_txt% |
| 19 | +echo %t_c%>> %add_trackers_txt% |
| 20 | +echo %t_b%>> %add_trackers_txt% |
| 21 | + |
| 22 | +rem remove_trackers_txt file. |
| 23 | +del %remove_trackers_txt% |
| 24 | + |
| 25 | +rem modify the torrent folder |
| 26 | +%path_to_enduser%trackereditor.exe %path_to_torrent% -U0 |
| 27 | + |
| 28 | +rem add some NEW trackers |
| 29 | +echo %t_o%> %add_trackers_txt% |
| 30 | +echo %t_b%>> %add_trackers_txt% |
| 31 | +echo %t_p%>> %add_trackers_txt% |
| 32 | +echo %t_m%>> %add_trackers_txt% |
| 33 | + |
| 34 | +rem modify the torrent folder |
| 35 | +%path_to_enduser%trackereditor.exe %path_to_torrent% -U0 |
| 36 | + |
| 37 | +rem torrent must filled with trackers in this order: new(o,b,p,m) + original(d,a,c,b) |
| 38 | +rem -> remove duplicated from original -> o,b,p,m,d,a,c, |
| 39 | + |
| 40 | +ENDLOCAL |
| 41 | +exit /b |
0 commit comments