From 1a53940c7f9c9d973a1175c31a3dc90cdc12534a Mon Sep 17 00:00:00 2001 From: Newton Scamander <47229722+newt-sc@users.noreply.github.com> Date: Tue, 9 Jul 2019 21:02:41 +0000 Subject: [PATCH] fix: cached provider does not support episodes --- meta.json | 2 +- providers/a4kScrapers/en/torrent/cached.py | 3 +++ tests_runner.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/meta.json b/meta.json index 4daa894..b4c8c00 100644 --- a/meta.json +++ b/meta.json @@ -1,6 +1,6 @@ { "author": "Unknown", - "version":"1.8.0", + "version":"1.8.1", "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/providers/a4kScrapers/en/torrent/cached.py b/providers/a4kScrapers/en/torrent/cached.py index 67dc5bb..135b2c5 100644 --- a/providers/a4kScrapers/en/torrent/cached.py +++ b/providers/a4kScrapers/en/torrent/cached.py @@ -5,3 +5,6 @@ class sources(core.DefaultSources): def __init__(self): super(sources, self).__init__(__name__) + + def episode(self, simple_info, all_info): + return [] \ No newline at end of file diff --git a/tests_runner.py b/tests_runner.py index 541a0d6..9a9862a 100644 --- a/tests_runner.py +++ b/tests_runner.py @@ -65,7 +65,7 @@ def assert_result(test, scraper, scraper_sources, scraper_name, torrent_list): if os.getenv('A4KSCRAPERS_TEST_ALL') == '1' and scraper_name not in ['showrss']: expected_count = len(core.trackers[scraper_name]) - if scraper_sources._request.has_exc: + if scraper_sources._request is not None and scraper_sources._request.has_exc: expected_count = 0 test.assertEqual(results_count, expected_count, '%s failed to find torrent' % scraper_name)