summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-07 20:26:00 +0100
committerGitHub <noreply@github.com>2020-12-07 20:26:00 +0100
commitc1a97322687546a066dacffb472d87a86eaadbd4 (patch)
tree056c50c725faf6697576bdc8d9362bfe60d5fe97
parent13d3004703013d44fe39ab73f77c3dbe2161b6f7 (diff)
parent34df0f791021112a40e8e14a387878c79e46cd1b (diff)
downloadsearxng-c1a97322687546a066dacffb472d87a86eaadbd4.tar.gz
searxng-c1a97322687546a066dacffb472d87a86eaadbd4.zip
Merge pull request #2364 from dalf/fix-youtube-noapi
[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', {})\