summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-07 17:44:31 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-07 17:44:31 +0100
commit34df0f791021112a40e8e14a387878c79e46cd1b (patch)
treed483f2d295268f92aa5292bc668a7a975ccb0f11
parentcdceec1cbb2ca894572396e0a68c2d09b0769231 (diff)
downloadsearxng-34df0f791021112a40e8e14a387878c79e46cd1b.tar.gz
searxng-34df0f791021112a40e8e14a387878c79e46cd1b.zip
[fix] youtube_noapi engine
-rw-r--r--searx/engines/youtube_noapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py
index 5f7d2ceab..36fc72e36 100644
--- a/searx/engines/youtube_noapi.py
+++ b/searx/engines/youtube_noapi.py
@@ -49,7 +49,7 @@ def response(resp):
results = []
results_data = resp.text[resp.text.find('ytInitialData'):]
- results_data = results_data[results_data.find('{'):results_data.find(';\n')]
+ results_data = results_data[results_data.find('{'):results_data.find(';</script>')]
results_json = loads(results_data) if results_data else {}
sections = results_json.get('contents', {})\