Downloading a Torrent with libtorrent-python

前端 未结 2 996
一个人的身影
一个人的身影 2021-01-31 20:28

I have the following python code:

import libtorrent as lt
import time

ses = lt.session()
ses.listen_on(6881, 6891)
params = {
    \'save_path\': \'/home/downloa         


        
2条回答
  •  别那么骄傲
    2021-01-31 20:58

    The download rate that you see is most likely from the actual metadata download (i.e. the .torrent file downloaded from your peers). Once the .torrent file has been downloaded, it's started. In this case.

    It appears as if you already have some of the files that belong to this torrent, so the downloading is stopped and those files are being checked. i.e. the piece are read in, hashed and compared to the piece hashes in the .torrent file.

    The last column shows you the number of megabytes found in the files that match the hashes, the last but one column show you the state of the torrent, i.e. checking.

    If you wait until the checking is done, the download should resume.

    Better yet, if you save resume data when you quit, and load it back in on startup, you don't have to re-check every time.

提交回复
热议问题