projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
paper: Abstract, Introduction and Next-Share sections completed
[living-lab-site.git]
/
cis
/
bt.py
diff --git
a/cis/bt.py
b/cis/bt.py
index
b6205b6
..
2184fa5
100644
(file)
--- a/
cis/bt.py
+++ b/
cis/bt.py
@@
-3,6
+3,7
@@
from BaseLib.Core.API import *
import tempfile
import random
from BaseLib.Core.API import *
import tempfile
import random
+import config
def create_torrent(source):
"""
def create_torrent(source):
"""
@@
-47,7
+48,7
@@
class BitTorrent:
self.session = Session(sscfg)
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'.
"""
Download (leech or seed) a file via BitTorrent.
The code is adapted from Next-Share's 'BaseLib/Tools/cmdlinedl.py'.