Milos Gajdos
dfd654bcde
Adding trackerless.torrent metainfo file to test suite
2015-05-03 16:37:48 +01:00
Milos Gajdos
f6d1652360
Added support for trackerless metainfo files
...
Based on the official spec
(http://www.bittorrent.org/beps/bep_0005.html ) trackerless metainfo
files do not contain announce key. Instead nodes key has to be
specified. This PR adds support for nodes key into metainfo package. It
also contains a test metainfo file.
2015-05-03 11:30:27 +01:00
Matt Joiner
c5208569ca
Apply sortimports
2015-04-30 00:31:34 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
ceabaaaeb2
Add Piece.Offset
2015-03-04 13:03:47 +11:00
Matt Joiner
b4d3b0d11a
Add Piece.Hash()
2015-02-27 13:00:05 +11:00
Matt Joiner
daf93c8232
Add various helpers to Info
2015-02-27 01:41:35 +11:00
Matt Joiner
a5d60fd76f
Fixes for single/multi-file torrent Infos
2015-02-26 22:12:02 +11:00
Matt Joiner
5a3a110e99
Add UpvertedFiles() to Info to make single-file torrents usable like
...
multi-file torrents.
2015-01-28 01:26:18 +11:00
Matt Joiner
543d0e72a9
Use the same info bytes from a decode, for a recode
...
This handles strange uses of optional info fields, like private=0
2014-12-01 23:28:22 -06:00
Matt Joiner
256d2e6530
Ensure that encoded and decoded forms match
2014-12-01 23:27:17 -06:00
Matt Joiner
e68810f29c
Need to break from the parent soon...
2014-11-28 10:34:19 -06:00
Matt Joiner
9d72fd024e
Expose MetaData directly so it can be bencoded from external packages
2014-07-13 17:36:06 +10:00
Matt Joiner
a44d2d88c3
Rename torrent package to metainfo; expose MetaInfo["info"] so it can be used on its own
...
--HG--
rename : torrent/README => metainfo/README
rename : torrent/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent => metainfo/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent
rename : torrent/_testdata/continuum.torrent => metainfo/_testdata/continuum.torrent
rename : torrent/builder.go => metainfo/builder.go
rename : torrent/metainfo.go => metainfo/metainfo.go
rename : torrent/metainfo_test.go => metainfo/metainfo_test.go
2014-06-28 19:40:39 +10:00