From be0715d0995fedf6751fd8a1f85d2b644eaa0144 Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Tue, 18 Aug 2020 22:02:25 +0200 Subject: [PATCH] Update rarbg (#145) --- nova3/engines/rarbg.py | 6 +++++- nova3/engines/versions.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nova3/engines/rarbg.py b/nova3/engines/rarbg.py index c0af213..c274298 100644 --- a/nova3/engines/rarbg.py +++ b/nova3/engines/rarbg.py @@ -1,4 +1,4 @@ -#VERSION: 2.12 +#VERSION: 2.13 # AUTHORS: b0nk # CONTRIBUTORS: Diego de las Heras (ngosang@hotmail.es) @@ -78,6 +78,10 @@ class rarbg(object): response = retrieve_url(base_url % params) j = json.loads(response) + # check empty response + if 'torrent_results' not in j: + return + # parse results for result in j['torrent_results']: res = {'link': result['download'], diff --git a/nova3/engines/versions.txt b/nova3/engines/versions.txt index edf5111..b26958d 100644 --- a/nova3/engines/versions.txt +++ b/nova3/engines/versions.txt @@ -4,7 +4,7 @@ leetx: 2.2 legittorrents: 2.4 limetorrents: 4.5 piratebay: 2.20 -rarbg: 2.12 +rarbg: 2.13 torlock: 2.1 torrentscsv: 1.0 zooqle: 1.13