From 34df0f791021112a40e8e14a387878c79e46cd1b Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Mon, 7 Dec 2020 17:44:31 +0100 Subject: [PATCH] [fix] youtube_noapi engine --- searx/engines/youtube_noapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py index 5f7d2cea..36fc72e3 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(';')] results_json = loads(results_data) if results_data else {} sections = results_json.get('contents', {})\