0

I need to use this library from Python, but I not found good documentation.

How can I dowload a torrent using this library, if I have a .torrent file?

Here are and example using magnet link, but I need one with .torrent file.

Thanks.

Community
  • 1
  • 1
user2983041
  • 1,761
  • 4
  • 19
  • 31
  • Why not just the link to the `.torrent` file instead of the `magnet:` link? – 2rs2ts Apr 29 '14 at 21:16
  • 1
    I found answer: ses = lt.session() ses.listen_on(6881, 6891) info = lt.torrent_info('ubuntu.torrent') h = ses.add_torrent({'ti': info, 'save_path': './'} – user2983041 Apr 29 '14 at 22:23

1 Answers1

1
ses = lt.session() 

ses.listen_on(6881, 6891) 

info = lt.torrent_info('ubuntu.torrent')

h = ses.add_torrent({'ti': info, 'save_path': './'}
Alex Riley
  • 169,130
  • 45
  • 262
  • 238
user2983041
  • 1,761
  • 4
  • 19
  • 31