Update for API V2.1
[webservice-strike.git] / t / WebService-Strike-Torrent.t
index cde5c7f3cdd0844ef0bfa6a0e027375c57ce559e..16e5fe9f199c453878388f348ed57f8b7870ec4f 100644 (file)
@@ -16,10 +16,9 @@ my %data = (
                file_names => [ 'archlinux-2015.01.01-dual.iso' ],
                file_lengths => [ 615514112 ],
        },
-       upload_date => 'Jan  6, 2015',
+       upload_date => 1420502400,
        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)'
 );
 
@@ -37,4 +36,4 @@ 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+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';
+is $t->magnet, 'magnet:?xt=urn:btih:B425907E5755031BDA4A8D1B6DCCACA97DA14C04&dn=Arch%20Linux%202015.01.01%20%28x86%2Fx64%29', 'magnet';
This page took 0.010116 seconds and 4 git commands to generate.