Andreas Habel
1/12/2005 6:51:00 PM
Hey William,
I did some more testing on version 0.2 and found .torrent structures
with unconsidered fields.
btw, great job so far!
Andreas
Here is my changed code:
class MetaInfoInfo
[...]
s.field :length => Integer,
:md5sum => String,
:name => String,
:piece_length => Integer,
:pieces => String,
:publisher_url => String,
:publisher_url_utf8 => String,
:files => MetaInfoInfoFile,
:name_utf8 => String,
:sha1 => String,
:ed2k => String
s.label :piece_length => "piece length",
:name_utf8 => "name.utf-8",
:publisher_url => "publisher-url",
:publisher_url_utf8 => "publisher-url.utf-8"
[...]
class MetaInfo
[...]
s.field :info => MetaInfoInfo,
:announce => URI::HTTP,
:announce_list => Array,
:creation_date => Time,
:comment => String,
:created_by => String,
:encoding => String,
:comment_utf8 => String,
:torrent_name => String
s.label :announce_list => "announce-list",
:comment_utf8 => "comment.utf-8",
:creation_date => "creation date",
:created_by => "created by",
:torrent_name => "torrent filename"
[...]