mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
Fix importing libtorrent
This commit is contained in:
parent
b0714f625f
commit
16b832f7ab
1 changed files with 12 additions and 12 deletions
|
@ -9,7 +9,7 @@ from deluge import maketorrent
|
||||||
|
|
||||||
def check_torrent(filename):
|
def check_torrent(filename):
|
||||||
# Test loading with libtorrent to make sure it's valid
|
# Test loading with libtorrent to make sure it's valid
|
||||||
import libtorrent as lt
|
from deluge._libtorrent import lt
|
||||||
lt.torrent_info(filename)
|
lt.torrent_info(filename)
|
||||||
|
|
||||||
# Test loading with our internal TorrentInfo class
|
# Test loading with our internal TorrentInfo class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue