Hi,
I`ve still posted this comment on comp.lang.ruby and after that I found
this list ;)
I`ve had some problems with a .torrent file because of unknown fields.
The file was created with: BitComet/0.56
So, I extended the metainfo class like this:
--
Andreas
Index: rubytorrent/rubytorrent/metainfo.rb
==================================================================RCS file:
/var/cvs/rubytorrent/rubytorrent/rubytorrent/metainfo.rb,v
retrieving revision 1.4
diff -r1.4 metainfo.rb
62,63c62,67
< :ed2k => String
< s.label :piece_length => "piece length", :name_utf8
=> "name.utf-8"
---
> :ed2k => String,
> :publisher_url => String,
> :publisher_url_utf8 => String
> s.label :piece_length => "piece length", :name_utf8
=>
"name.utf-8",
> :publisher_url => "publisher-url",
> :publisher_url_utf8 => "publisher-url.utf-8"
134c138,139
< :comment_utf8 => String
---
> :comment_utf8 => String,
> :torrent_name => String
136c141,142
< :creation_date => "creation date", :created_by
=>
"created by"
---
> :creation_date => "creation date", :created_by
=>
"created by",
> :torrent_name => "torrent filename"