[libtorrent] resume download
Brought to you by:
arvidn
|
From: Moritz W. <mor...@we...> - 2014-02-26 21:42:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, can a download be resumed after the application has been closed? The issue is that the original torrent file is not available. The client.py example from the libtorrent repository seem to rely on that fact. I tried to store and load the metadata and fastresume data - but it did not seem to work. After the restart I get "RuntimeError: missing or invalid 'info' section in torrent file". As for the metadata, h.get_torrent_info().metadata() is written to disk. It is loaded this way: e = lt.bdecode(open(mfile, 'rb').read()) info = lt.torrent_info(e) atp["ti"] = info That is probably where the problem is. The test case is attached. Maybe someone can give me a pointer into the right direction. regards, mwarning -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQEcBAEBAgAGBQJTDl9iAAoJECHrh56PP4wpWLoIAI6DjUV9gNCVmzj93YpiPV6l XlL5lXithyQjsoaCB7MPgPYpaasf63x4Hq/Nmo736LVwN6Qfqq4joxFUu9EMFXOo ocdunBPE5E93kxFomsNErwXlwLYjQATJKrHfZrKqX+cXNdDvtpRbUwQTK9V7++DG GfhpspKGz1NZNRHKO3eHjRqPyZSVEHlbRX1VGWrW7MZn+9Ds62ihPwUE0ssTWFTa vcAMVgxnORUojQ1xhVTTWghbAio21Yrtf9fSKVSnpam0Lc7QpVSjfJ+imjYtk7Te pzFnTPJIeAJNPf4H6jS+LYkZlN7WIP0UN317i9YvrL2fXjbQBroRiBF724PlMzU= =pc31 -----END PGP SIGNATURE----- |