aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-10-12 11:07:32 -0300
committerEuAndreh <eu@euandre.org>2021-10-12 11:07:32 -0300
commitd51f61572ecab4a67a15fdc9606a1c0c370e5386 (patch)
tree3e4df355c330ef2eff7d85d9f024bcc83b8f538e
parent_tils/2020-11-30-storing-ci-data-on-git-notes.md: Fix links (diff)
downloadeuandre.org-d51f61572ecab4a67a15fdc9606a1c0c370e5386.tar.gz
euandre.org-d51f61572ecab4a67a15fdc9606a1c0c370e5386.tar.xz
_plugins/generate-torrent.rb: Don't include trackers for torrent file, they are not necessary
Diffstat (limited to '')
-rw-r--r--_plugins/generate-torrent.rb4
1 files changed, 1 insertions, 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"