commit e195a1c8c9a8fd85b22cc41f5360414e24a84047
parent a76cef1e9a10fa76b1d64f089c33de3129552733
Author: Paco Esteban <paco@onna.be>
Date: Wed, 10 Jul 2019 10:42:49 +0200
v0.1.9
Diffstat:
4 files changed, 36 insertions(+), 33 deletions(-)
diff --git a/Changes b/Changes
@@ -2,6 +2,10 @@ Revision history for Rarbg-torrentapi
{{$NEXT}}
+v0.1.9 2019-07-10 10:42:27 CEST
+ - better handling the api request limit thanks to Baptiste C.
+ - Added list of categories to docs.
+
v0.1.8 2018-11-17 19:47:42 CET
- search by tvrage id is deprecated
- you can now search by themoviedb id
diff --git a/META.json b/META.json
@@ -4,7 +4,7 @@
"Paco Esteban <paco@onna.be>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Milla version v1.0.20, Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150005",
+ "generated_by" : "Dist::Milla version v1.0.20, Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
@@ -65,12 +65,12 @@
"web" : "https://github.com/pacoesteban/Rarbg-torrentapi"
}
},
- "version" : "v0.1.8",
+ "version" : "v0.1.9",
"x_contributors" : [
"Baptiste C <baptistecdr@users.noreply.github.com>"
],
- "x_generated_by_perl" : "v5.24.3",
- "x_serialization_backend" : "Cpanel::JSON::XS version 4.07",
+ "x_generated_by_perl" : "v5.30.0",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.12",
"x_static_install" : 1
}
diff --git a/README.md b/README.md
@@ -1,15 +1,15 @@
# NAME
-Rarbg::torrentapi - Wrapper around [Rarbg torrentapi](https://torrentapi.org/apidocs_v2.txt)
+Rarbg::torrentapi - Wrapper around Rarbg torrentapi ([https://torrentapi.org/apidocs\_v2.txt](https://torrentapi.org/apidocs_v2.txt))
# SYNOPSIS
use Rarbg::torrentapi;
my $tapi = Rarbg::torrentapi->new();
-
+
# list lastest torrents
my $last_added = $tapi->list();
-
+
# list torrents sorted by seeders
my $last_added = $tapi->list({
sort => 'seeders',
@@ -67,29 +67,29 @@ This is the Imdb id (http://imdb.com) in the form 'tt123456'
Category can be quite confusing.
It accepts 'tv' and 'movies'. But, for the rest of categories only accepts its id numbers (or a semi-colon separated list of them).
-* XXX (18+) => 4
-* Movies/XVID => 14
-* Movies/XVID/720 => 48
-* Movies/x264 => 17
-* Movies/x264/1080 => 44
-* Movies/x264/720 => 45
-* Movies/x264/3D => 47
-* Movies/x264/4k => 50
-* Movies/x265/4k => 51
-* Movies/x264/4k/HDR => 52
-* Movies/Full BD => 42
-* Movies/BD Remux => 46
-* TV Episodes => 18
-* TV HD Episodes => 41
-* TV UHD Episodes => 49
-* Movies/MP3 => 23
-* Movies/FLAC => 25
-* Games/PC ISO => 27
-* Games/PC RIP => 28
-* Games/PS3 => 40
-* Games/XBOX-360 => 32
-* Software/PC ISO => 33
-* Games/PS4 => 53
+- XXX (18+) => 4
+- Movies/XVID => 14
+- Movies/XVID/720 => 48
+- Movies/x264 => 17
+- Movies/x264/1080 => 44
+- Movies/x264/720 => 45
+- Movies/x264/3D => 47
+- Movies/x264/4k => 50
+- Movies/x265/4k => 51
+- Movies/x264/4k/HDR => 52
+- Movies/Full BD => 42
+- Movies/BD Remux => 46
+- TV Episodes => 18
+- TV HD Episodes => 41
+- TV UHD Episodes => 49
+- Movies/MP3 => 23
+- Movies/FLAC => 25
+- Games/PC ISO => 27
+- Games/PC RIP => 28
+- Games/PS3 => 40
+- Games/XBOX-360 => 32
+- Software/PC ISO => 33
+- Games/PS4 => 53
## limit
@@ -125,8 +125,7 @@ Makes a call to the API in 'list' mode. It returns either a Rarbg::torrentapi::E
# AUTHORS
Paco Esteban <paco@onna.be>
-
-Baptiste C. (https://github.com/baptistecdr)
+Baptiste C. [https://github.com/baptistecdr](https://github.com/baptistecdr)
# COPYRIGHT
diff --git a/lib/Rarbg/torrentapi.pm b/lib/Rarbg/torrentapi.pm
@@ -2,7 +2,7 @@ package Rarbg::torrentapi;
use strict;
use 5.008_005;
-our $VERSION = 'v0.1.8';
+our $VERSION = 'v0.1.9';
use LWP::UserAgent;
use JSON;
use Carp;