libtorrent

Libtorrent Session_Status not updating

十年热恋 提交于 2020-01-07 01:22:34
问题 Im trying to get Session_Status updated but for whatever reason the values of the structure never update, session is started like so: using namespace libtorrent; session* Session; session_status* Session_Status; session_settings* Session_Settings; bool Start_Client_Sess ( ) { using namespace libtorrent; Session = new session; Session_Status = new session_status; Session_Settings = new session_settings; Session->settings ( ); Session->set_settings ( *Session_Settings ); Session->add_extension

download content torrent files point to in python3

China☆狼群 提交于 2020-01-06 04:07:56
问题 Perhaps I'm misunderstanding how .torrent files work, but is there a way in python to download the actual referenced content the .torrent file points to that would be downloaded say using a torrent client such as utorrent, but from the shell/command line using python? The following works for simply downloading a .torrent file and sure I could open the torrent client as well do download the .torrent, but I'd rather streamline the process in the command line. Can't seem to find much online

libtorrent-rasterbar can't download metadata using magnet links

社会主义新天地 提交于 2020-01-04 15:57:32
问题 I'm trying to download a remote metadata file (.torrent) using no-DHT, tracker-only behavior with libtorrent-rasterbar 0.16.13. Unfortunately, I get a lot of peer_disconnected errors; seeding from my program and downloading through clients such as BT or QBittorrent works. I'm using hex-encoded hashes, I don't know if this is the problem as libtorrent-rasterbar seems to support both Hex and Base32 hashes in the Magnet URI. Remember that I already have a tracker and I dont want to use DHT, but

Installing libtorrent for Python 3.6 on Windows 7

假如想象 提交于 2020-01-03 02:54:11
问题 Windows 7 x64 - Python 3.6 I am trying to install the libtorrent Python library in windows using the instructions here. After navigating to the setup.py file, I used the following commands python setup.py build python setup.py install In the cmd window, I get the following messages: C:\Users\thomas\Desktop\libtorrent-master>python setup.py build running build C:\Users\thomas\Desktop\libtorrent-master>python setup.py install running install running build running install_egg_info Removing C:

libtorrent unresolved external

 ̄綄美尐妖づ 提交于 2019-12-24 19:24:56
问题 I'm getting the following error when I compile my program which links to libtorrent.lib. I've tried compiling libtorrent with different settings, I've tried enabling/disabling DHT, deprecated functions, etc. error LNK2019: unresolved external symbol "void __cdecl libtorrent::rel_performancetimer_pools_nolog_resolvecountries_deprecated_dht_ext_(void)" Is anyone here familiar with libtorrent, or can anyone provide any advice for getting rid of this error? I don't see any other libraries that I

Python3.6 how to install libtorrent?

偶尔善良 提交于 2019-12-24 09:58:36
问题 Does libtorrent support python3 now? if supported how to install it . I want to code a DHT Crawler with python3 , i don't know why my code alaways got Connection reset by peer error , so i want to use libtorrent , if there are another lib , i'm happy to use it . My biggest problem is , conversing the infohash to torrent file . Could it be a code problem? class Crawler(Maga): async def handler(self, infohash, addr): fetchMetadata(infohash, addr) def fetchMetadata(infohash, addr, timeout=5):

Do the python bindings for libtorrent-rasterbar work with Python 3 ?

ぃ、小莉子 提交于 2019-12-24 02:02:43
问题 I have Python 3.4 (32-bit) installed, and I installed the python-libtorrent-0.16.16.win32.msi on top of that. My test code says: ImportError: DLL load failed: %1 is not a valid Win32 application. My google results suggest this works fine with Python 2.7. Is that the solution? I have to down-grade my Python? 回答1: NO. Libtorrent doesn't support Python 3. It compiles but doesn't work due to Python 3 utf8 handling difference. There was an unsuccessful effort to make it work a while back https:/

Do the python bindings for libtorrent-rasterbar work with Python 3 ?

醉酒当歌 提交于 2019-12-24 02:02:20
问题 I have Python 3.4 (32-bit) installed, and I installed the python-libtorrent-0.16.16.win32.msi on top of that. My test code says: ImportError: DLL load failed: %1 is not a valid Win32 application. My google results suggest this works fine with Python 2.7. Is that the solution? I have to down-grade my Python? 回答1: NO. Libtorrent doesn't support Python 3. It compiles but doesn't work due to Python 3 utf8 handling difference. There was an unsuccessful effort to make it work a while back https:/

Python Libtorrent doesn't seed

对着背影说爱祢 提交于 2019-12-23 01:44:20
问题 I'm trying to generate a torrent and seed it with python libtorrent, it generates the torrent, but doesn't seed it. I am using libtorrent-0.16.18 with Python3.4 on Ubuntu 14.04 import sys import time import libtorrent as lt fs = lt.file_storage() lt.add_files(fs, "./test.txt") t = lt.create_torrent(fs) t.add_tracker("udp://tracker.publicbt.com:80") t.set_creator("My Torrent") t.set_comment("Test") lt.set_piece_hashes(t, ".") torrent = t.generate() f = open("mytorrent.torrent", "wb") f.write

Memory corruption with libtorrent-rasterbar and QGuiApplication

元气小坏坏 提交于 2019-12-13 04:51:28
问题 I'm trying to use libtorrent in my Qt5 application but keep getting segfaults with messages like malloc(): memory corruption. After hours of debbuging I come up with this small piece of code which triggers this problem: int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); std::string filename = "fedora.torrent"; libtorrent::error_code ec; libtorrent::add_torrent_params parameters; std::cerr << "111\n"; parameters.ti = new libtorrent::torrent_info(filename, ec);; std::cerr <<