Skip to content

Commit

Permalink
fix: cached provider does not support episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Jul 9, 2019
1 parent 8f15f6f commit 1a53940
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions providers/a4kScrapers/en/torrent/cached.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
class sources(core.DefaultSources):
def __init__(self):
super(sources, self).__init__(__name__)

def episode(self, simple_info, all_info):
return []
2 changes: 1 addition & 1 deletion tests_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a53940

Please sign in to comment.