From def9fe54b8865ed25013e5ec5c1aa1bb6021db73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Thu, 10 Sep 2020 21:06:16 +0200 Subject: [PATCH] Fix opening items from search --- resources/lib/viervijfzes/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/viervijfzes/search.py b/resources/lib/viervijfzes/search.py index 93e8a31..2af6d94 100644 --- a/resources/lib/viervijfzes/search.py +++ b/resources/lib/viervijfzes/search.py @@ -49,7 +49,7 @@ class SearchApi: if hit['_source']['bundle'] == 'program': results.append(Program( channel=hit['_source']['site'], - path=hit['_source']['url'].strip('/'), + path=hit['_source']['url'].split('/')[-1], title=hit['_source']['title'], description=hit['_source']['intro'], cover=hit['_source']['img'],