One problem with deluge.metafile.dummy()

Suggestions and discussion of future versions
Post Reply
kevinwatt
New User
New User
Posts: 4
Joined: Mon Jun 22, 2009 9:05 am

One problem with deluge.metafile.dummy()

Post by kevinwatt »

I was try to create a torrent file from metafile libary.
But there have one problem with argument.
-----
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/python-support/python2.6/deluge/metafile.py", line 96, in make_meta_file
info = makeinfo(path, piece_length, progress, name, content_type, private)
File "/var/lib/python-support/python2.6/deluge/metafile.py", line 216, in makeinfo
progress(piece_count, num_pieces)
TypeError: dummy() takes exactly 1 argument (2 given
-----
I'm check metafile for dummy,
def dummy(v):
pass

make_meta_file(....,progress=dummy,)

makeinfo(...
progress(piece_count, num_pieces)
It should be two input value.
def dummy(v,n)
pass
:D
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: One problem with deluge.metafile.dummy()

Post by johnnyg »

thanks, this has been fixed in http://dev.deluge-torrent.org/changeset/5400.
Post Reply