From 02e864ccdbe5bf4dc5945451e2690f6be97da85d Mon Sep 17 00:00:00 2001 From: newt-sc <47229722+newt-sc@users.noreply.github.com> Date: Sun, 30 May 2021 17:15:52 +0300 Subject: [PATCH] release: v2.61.0 --- CHANGELOG.md | 6 ++++++ meta.json | 2 +- providerModules/a4kScrapers/scrapers.py | 8 ++++++-- providerModules/a4kScrapers/source_utils.py | 4 ++-- providerModules/a4kScrapers/urls.json | 11 ++++++++--- providers/a4kScrapers/en/torrent/7torrents.py | 7 +++++++ 6 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 providers/a4kScrapers/en/torrent/7torrents.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d7664d..9d9461c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +* [v2.61.0](https://github.com/a4k-openproject/a4kScrapers/releases/tag/a4kScrapers-2.61.0): + * add 7torrents + * exclude more keywords for movie titles + * remove dead url for extratorrent + * sort solidtorrents by size + * [v2.60.0](https://github.com/a4k-openproject/a4kScrapers/releases/tag/a4kScrapers-2.60.0): * allow only movie results where the expected title is followed by the expected year * add additional check if the movie result is actually an episode diff --git a/meta.json b/meta.json index ad95e7e..40d5165 100644 --- a/meta.json +++ b/meta.json @@ -1,6 +1,6 @@ { "author": "Unknown", - "version":"2.60.0", + "version":"2.61.0", "name":"a4kScrapers", "update_directory": "https://github.com/a4k-openproject/a4kScrapers/archive/", "remote_meta": "https://raw.githubusercontent.com/newt-sc/a4kScrapers/master/meta.json", diff --git a/providerModules/a4kScrapers/scrapers.py b/providerModules/a4kScrapers/scrapers.py index a2ca802..aa4cf77 100644 --- a/providerModules/a4kScrapers/scrapers.py +++ b/providerModules/a4kScrapers/scrapers.py @@ -25,6 +25,9 @@ def __init__(self, title): def _parse_rows(self, response, row_tag): results = [] + if row_tag not in response: + return results + rows = response.split(row_tag) for row in rows: torrent = self._parse_torrent(row, row_tag) @@ -110,10 +113,11 @@ def soup_filter(self, response): response = normalize(response.text) return ( + self._parse_rows(response, row_tag='