mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #2364 from dalf/fix-youtube-noapi
[fix] youtube_noapi engine
This commit is contained in:
		
						commit
						c1a9732268
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -49,7 +49,7 @@ def response(resp): | ||||||
|     results = [] |     results = [] | ||||||
| 
 | 
 | ||||||
|     results_data = resp.text[resp.text.find('ytInitialData'):] |     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 {} |     results_json = loads(results_data) if results_data else {} | ||||||
|     sections = results_json.get('contents', {})\ |     sections = results_json.get('contents', {})\ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Alexandre Flament
						Alexandre Flament