9 "github.com/anacrolix/torrent/metainfo"
13 fmt.Println("Ctrl+C to start downloading")
14 sc := make(chan os.Signal, 1)
15 signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
18 for _, hash := range infoHashes {
19 t, _ := client.AddTorrentInfoHash(metainfo.NewHashFromHex(hash))
23 fmt.Println("Download started for", infoHash)
29 fmt.Println("All torrents downloaded")
31 fmt.Println("Ctrl+C to stop program")
32 sc2 := make(chan os.Signal, 1)
33 signal.Notify(sc2, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)