diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-07 17:44:31 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-07 17:44:31 +0100 |
commit | 34df0f791021112a40e8e14a387878c79e46cd1b (patch) | |
tree | d483f2d295268f92aa5292bc668a7a975ccb0f11 /searx/engines/youtube_noapi.py | |
parent | cdceec1cbb2ca894572396e0a68c2d09b0769231 (diff) | |
download | searxng-34df0f791021112a40e8e14a387878c79e46cd1b.tar.gz searxng-34df0f791021112a40e8e14a387878c79e46cd1b.zip |
[fix] youtube_noapi engine
Diffstat (limited to 'searx/engines/youtube_noapi.py')
-rw-r--r-- | searx/engines/youtube_noapi.py | 2 |
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', {})\ |