From d51f61572ecab4a67a15fdc9606a1c0c370e5386 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 12 Oct 2021 11:07:32 -0300 Subject: _plugins/generate-torrent.rb: Don't include trackers for torrent file, they are not necessary --- _plugins/generate-torrent.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_plugins/generate-torrent.rb b/_plugins/generate-torrent.rb index fd38d85..580bcf8 100644 --- a/_plugins/generate-torrent.rb +++ b/_plugins/generate-torrent.rb @@ -1,5 +1,3 @@ -TRACKERS = '-a udp://tracker.coppersurfer.tk:6969/announce -a udp://tracker.ccc.de:80/announce -a udp://tracker.publicbt.com:80 -a udp://tracker.istole.it:80 -a http://tracker.openbittorrent.com:80/announce -a http://tracker.ipv6tracker.org:80/announce' - module Jekyll class TorrentGenerator < Generator safe true @@ -23,7 +21,7 @@ module Jekyll unless File.exist? torrent then webseed = "#{site.config['url']}/#{media}" puts "Missing '#{torrent}' file, generating..." - puts `mktorrent #{TRACKERS} -f -v -d -c '#{document.content}' -n #{file} -w #{webseed} -o #{torrent} #{media}` + puts `mktorrent -f -v -d -c '#{document.content}' -n #{file} -w #{webseed} -o #{torrent} #{media}` end checksum_file = "#{torrent}.checksum" -- cgit v1.2.3