Downloading a Torrent with libtorrent-python

前端 未结 2 1043
一个人的身影
一个人的身影 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:53

    The problem turned out to be trivial. The save_path did not exist, thus the libtorrent library downloaded as long as it did not have to flush the cache, but once it attempted to write the file, it failed and could not continue downloading, therefore the slowdown and eventual halt. Once an existing path was added it worked fine.

提交回复
热议问题