my %data = (
leeches => 13,
- size => '587 MB',
- torrent_hash => 'b425907e5755031bda4a8d1b6dccaca97da14c04',
+ size => 615514112,
+ torrent_hash => 'B425907E5755031BDA4A8D1B6DCCACA97DA14C04',
file_count => 1,
sub_category => '',
torrent_category => 'Applications',
- file_info => [{
+ file_info => {
file_names => [ 'archlinux-2015.01.01-dual.iso' ],
file_lengths => [ 615514112 ],
- }],
+ },
upload_date => 'Jan 6, 2015',
seeds => 645,
uploader_username => 'The_Doctor-',
+ magnet_uri => 'magnet:?xt=urn:btih:B425907E5755031BDA4A8D1B6DCCACA97DA14C04&dn=Arch+Linux+2015.01.01+%28x86%2Fx64%29&tr=udp://open.demonii.com:1337&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://exodus.desync.com:6969',
torrent_title => 'Arch Linux 2015.01.01 (x86/x64)'
);
is $t->seeds, 645, 'seeds';
is $t->leeches, 13, 'leeches';
is $t->count, 1, 'count';
-is $t->size, '587 MB', 'size';
+is $t->size, 615514112, 'size';
is $t->date, 1420502400,'date';
is $t->uploader, 'The_Doctor-', 'uploader';
is $t->names->[0], 'archlinux-2015.01.01-dual.iso', 'names';
is $t->lengths->[0], 615514112, 'lengths';
-is $t->magnet, 'magnet:?xt=urn:btih:B425907E5755031BDA4A8D1B6DCCACA97DA14C04&dn=Arch%20Linux%202015.01.01%20%28x86%2Fx64%29', 'magnet';
+is $t->magnet, 'magnet:?xt=urn:btih:B425907E5755031BDA4A8D1B6DCCACA97DA14C04&dn=Arch+Linux+2015.01.01+%28x86%2Fx64%29&tr=udp://open.demonii.com:1337&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.leechers-paradise.org:6969&tr=udp://exodus.desync.com:6969', 'magnet';