WebService::Strike::Torrent - [OBSOLETE] Class representing information about a torrent
use WebService::Strike; my $t = strike 'B425907E5755031BDA4A8D1B6DCCACA97DA14C04'; say $t->hash; # B425907E5755031BDA4A8D1B6DCCACA97DA14C04 say $t->title; # Arch Linux 2015.01.01 (x86/x64) say $t->category; # Applications say $t->sub_category; # '' (empty string) say $t->seeds; say $t->leeches; say $t->count; # 1 say $t->size; # 615514112 say $t->date; # 1420502400 say $t->uploader; # The_Doctor- say @{$t->names}; # archlinux-2015.01.01-dual.iso say @{$t->lengths}; # 615514112 say $t->magnet; # magnet:?xt=urn:btih:B425907E5755031BDA4A8D1B6DCCACA97DA14C04&dn=Arch%20Linux%202015.01.01%20%28x86%2Fx64%29 say $t->description; # <HTML fragment describing Arch Linux> $t = strike 'ED70C185E3E3246F30B2FDB08D504EABED5EEA3F'; say $t->title; # The Walking Dead S04E15 HDTV x264-2HD say $t->imdb_id; # tt1520211 my $i = $t->imdb; say $i->{title}, ' (', $i->{year}, ')'; # The Walking Dead (2010) say $i->{genre}; # Drama, Horror, Thriller
The API was discontinued. The code in this module remains, but it does not achieve any useful purpose.
WebService::Strike::Torrent is a class that represents information about a torrent.
Methods:
The info_hash of the torrent.
The title of the torrent.
The category of the torrent.
The subcategory of the torrent.
The number of seeders.
The number of leechers.
The number of files contained in the torrent.
The total size of the files in the torrent in bytes.
Unix timestamp when the torrent was uploaded, with precision of one day.
Username of the user who uploaded the torrent.
Arrayref of paths of files in the torrent.
Arrayref of lengths of files in the torrent, in bytes.
Magnet link for the torrent.
THIS METHOD WAS REMOVED IN STRIKE API V2.1. Therefore, it simply dies. Below is the previous documentation of the method.
Downloads the torrent from Strike. With no arguments, returns the contents of the torrent file. With an argument, stores the torrent in $filename.
Both forms return a true value for success and false for failure.
The description of the torrent. This method sends an extra request to Strike. Successful responses are cached.
The IMDB ID of the torrent, or undef if the torrent has no associated IMDB ID.
Calls strike_imdb from WebService::Strike on imdb_id. Caches the response. Returns undef if the torrent has no associated IMDB ID.
WebService::Strike, https://getstrike.net/api/
Marius Gavrilescu, <marius@ieval.ro>
Copyright (C) 2015-2016 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.
To install WebService::Strike, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Strike
CPAN shell
perl -MCPAN -e shell install WebService::Strike
For more information on module installation, please visit the detailed CPAN module installation guide.