[ANN] rubytorrent 0.2 (bittorrent for ruby)

W

William Morgan

A

Andreas Habel

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"
[...]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top