These are chat archives for anacrolix/torrent

17th
May 2018
asapokl
@kzoper
May 17 2018 13:37

How to download separate file from torrent ?
I know offset 0 and lenght 457540
But when i try
t.DownloadPieces(0,457540)
c.WaitAll()
See this
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/anacrolix/torrent.(Torrent).downloadPiecesLocked(0xc4200b6700, 0x0, 0x6fb44)
/home/kzoper/go/src/github.com/anacrolix/torrent/t.go:160 +0x9e
github.com/anacrolix/torrent.(
Torrent).DownloadPieces(0xc4200b6700, 0x0, 0x6fb44)
/home/kzoper/go/src/github.com/anacrolix/torrent/t.go:155 +0x81
main.main()
/home/kzoper/go/src/github.com/kzoper/torr/main.go:17 +0x24d

Denis
@elgatito
May 17 2018 13:40
file.Download() , not torrent.Download*
asapokl
@kzoper
May 17 2018 13:46
<- t.GotInfo()
t.Files()[0].Download()
c.WaitAll()
right ?
Denis
@elgatito
May 17 2018 13:48
Yup
asapokl
@kzoper
May 17 2018 13:48
thx