From f2b29a682bdb1368a30d019ce41c7346b62427d7 Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sun, 21 May 2023 13:57:08 +0200 Subject: [PATCH] Update ThePirateBay search engine. Resolves #217 (#237) --- nova3/engines/piratebay.py | 4 +++- nova3/engines/versions.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nova3/engines/piratebay.py b/nova3/engines/piratebay.py index 672004a..033c01a 100644 --- a/nova3/engines/piratebay.py +++ b/nova3/engines/piratebay.py @@ -1,4 +1,4 @@ -#VERSION: 3.1 +#VERSION: 3.2 # AUTHORS: Fabien Devaux (fab@gnux.info) # CONTRIBUTORS: Christophe Dumez (chris@qbittorrent.org) # Arthur (custparasite@gmx.se) @@ -79,6 +79,8 @@ class piratebay(object): # parse results for result in response_json: + if result['name'] == 'No results returned': + continue res = { 'link': self.download_link(result), 'name': result['name'], diff --git a/nova3/engines/versions.txt b/nova3/engines/versions.txt index c89793b..92d5b79 100644 --- a/nova3/engines/versions.txt +++ b/nova3/engines/versions.txt @@ -1,7 +1,7 @@ eztv: 1.14 jackett: 3.5 limetorrents: 4.7 -piratebay: 3.1 +piratebay: 3.2 rarbg: 2.14 solidtorrents: 2.1 torlock: 2.22