mirror of
https://github.com/searxng/searxng.git
synced 2024-12-23 09:46:31 +00:00
[fix] youtube_noapi engine
This commit is contained in:
parent
cdceec1cbb
commit
34df0f7910
1 changed files with 1 additions and 1 deletions
|
@ -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', {})\
|
||||
|
|
Loading…
Reference in a new issue