From 0ef54b7f60b006779a1fbf13b30cf9731dc9690d Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Wed, 22 Apr 2020 16:40:24 +0200 Subject: [PATCH] rarbg: fix categories. resolves #132 (#133) --- nova/engines/rarbg.py | 16 +++++++++------- nova/engines/versions.txt | 2 +- nova3/engines/rarbg.py | 16 +++++++++------- nova3/engines/versions.txt | 2 +- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/nova/engines/rarbg.py b/nova/engines/rarbg.py index e21dfc7..c0af213 100644 --- a/nova/engines/rarbg.py +++ b/nova/engines/rarbg.py @@ -1,4 +1,4 @@ -#VERSION: 2.11 +#VERSION: 2.12 # AUTHORS: b0nk # CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) @@ -43,12 +43,14 @@ from helpers import retrieve_url class rarbg(object): url = 'https://rarbg.to' name = 'RARBG' - supported_categories = {'all': '1;4;14;15;16;17;21;22;42;18;19;41;27;28;29;30;31;32;40;23;24;25;26;33;34;43;44;45;46;47;48;49;50;51;52', # noqa - 'movies': 'movies', - 'tv': 'tv', - 'music': '1;23;24;25;26', - 'games': '1;27;28;29;30;31;32;40', - 'software': '1;33;34;43'} + supported_categories = { + 'all': '4;14;17;18;23;25;27;28;32;33;40;41;42;44;45;46;47;48;49;50;51;52;53;54', + 'movies': '14;17;42;44;45;46;47;48;50;51;52;54', + 'tv': '18;41;49', + 'music': '23;25', + 'games': '27;28;32;40;53', + 'software': '33' + } def search(self, what, cat='all'): base_url = "https://torrentapi.org/pubapi_v2.php?%s" diff --git a/nova/engines/versions.txt b/nova/engines/versions.txt index b0daf67..cd71cf9 100644 --- a/nova/engines/versions.txt +++ b/nova/engines/versions.txt @@ -4,7 +4,7 @@ leetx: 2.01 legittorrents: 2.03 limetorrents: 4.04 piratebay: 2.20 -rarbg: 2.11 +rarbg: 2.12 torlock: 2.1 torrentscsv: 1.0 zooqle: 1.13 diff --git a/nova3/engines/rarbg.py b/nova3/engines/rarbg.py index e21dfc7..c0af213 100644 --- a/nova3/engines/rarbg.py +++ b/nova3/engines/rarbg.py @@ -1,4 +1,4 @@ -#VERSION: 2.11 +#VERSION: 2.12 # AUTHORS: b0nk # CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) @@ -43,12 +43,14 @@ from helpers import retrieve_url class rarbg(object): url = 'https://rarbg.to' name = 'RARBG' - supported_categories = {'all': '1;4;14;15;16;17;21;22;42;18;19;41;27;28;29;30;31;32;40;23;24;25;26;33;34;43;44;45;46;47;48;49;50;51;52', # noqa - 'movies': 'movies', - 'tv': 'tv', - 'music': '1;23;24;25;26', - 'games': '1;27;28;29;30;31;32;40', - 'software': '1;33;34;43'} + supported_categories = { + 'all': '4;14;17;18;23;25;27;28;32;33;40;41;42;44;45;46;47;48;49;50;51;52;53;54', + 'movies': '14;17;42;44;45;46;47;48;50;51;52;54', + 'tv': '18;41;49', + 'music': '23;25', + 'games': '27;28;32;40;53', + 'software': '33' + } def search(self, what, cat='all'): base_url = "https://torrentapi.org/pubapi_v2.php?%s" diff --git a/nova3/engines/versions.txt b/nova3/engines/versions.txt index b0daf67..cd71cf9 100644 --- a/nova3/engines/versions.txt +++ b/nova3/engines/versions.txt @@ -4,7 +4,7 @@ leetx: 2.01 legittorrents: 2.03 limetorrents: 4.04 piratebay: 2.20 -rarbg: 2.11 +rarbg: 2.12 torlock: 2.1 torrentscsv: 1.0 zooqle: 1.13