X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=cis%2Fbt.py;h=2184fa5d279fd8f37b9c8e04f66700068f8c7504;hb=2aecadba1f242a0dcf68614a6aa602282f020b41;hp=b6205b699c879183bfeecf31273abefc25e5a68e;hpb=3cf4f616f7d4095623ad5eae5db9fb1149ee1238;p=living-lab-site.git diff --git a/cis/bt.py b/cis/bt.py index b6205b6..2184fa5 100644 --- a/cis/bt.py +++ b/cis/bt.py @@ -3,6 +3,7 @@ from BaseLib.Core.API import * import tempfile import random +import config def create_torrent(source): """ @@ -47,7 +48,7 @@ class BitTorrent: self.session = Session(sscfg) - def download(self, torrent, output_dir='.'): + def start_download(self, torrent, output_dir='.'): """ Download (leech or seed) a file via BitTorrent. The code is adapted from Next-Share's 'BaseLib/Tools/cmdlinedl.py'.