summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/engines/frinkiac.py2
-rw-r--r--tests/unit/engines/test_frinkiac.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/searx/engines/frinkiac.py b/searx/engines/frinkiac.py
index 7edb4a3cb..a9383f862 100644
--- a/searx/engines/frinkiac.py
+++ b/searx/engines/frinkiac.py
@@ -20,10 +20,12 @@ RESULT_URL = '{base}?{query}'
THUMB_URL = '{base}img/{episode}/{timestamp}/medium.jpg'
IMAGE_URL = '{base}img/{episode}/{timestamp}.jpg'
+
def request(query, params):
params['url'] = SEARCH_URL.format(base=BASE, query=urlencode({'q': query}))
return params
+
def response(resp):
results = []
response_data = loads(resp.text)
diff --git a/tests/unit/engines/test_frinkiac.py b/tests/unit/engines/test_frinkiac.py
index 9d5b70bbd..0997288a9 100644
--- a/tests/unit/engines/test_frinkiac.py
+++ b/tests/unit/engines/test_frinkiac.py
@@ -24,15 +24,15 @@ class TestFrinkiacEngine(SearxTestCase):
'Episode': 'S05E21',
'Timestamp': 3453455,
'Filename': ''},
- {'Id': 435354,
+ {'Id': 435354,
'Episode': 'S05E22',
'Timestamp': 3453456,
'Filename': ''},
- {'Id': 435333,
+ {'Id': 435333,
'Episode': 'S05E23',
'Timestamp': 3453457,
'Filename': ''},
- {'Id': 477234,
+ {'Id': 477234,
'Episode': 'S05E24',
'Timestamp': 3453458,
'Filename': ''}])