mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[extractor/youtube] Improve nsig function name extraction
This commit is contained in:
		| @@ -3140,7 +3140,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): | ||||
|             return funcname | ||||
| 
 | ||||
|         return json.loads(js_to_json(self._search_regex( | ||||
|             rf'var {re.escape(funcname)}\s*=\s*(\[.+?\]);', jscode, | ||||
|             rf'var {re.escape(funcname)}\s*=\s*(\[.+?\])[,;]', jscode, | ||||
|             f'Initial JS player n function list ({funcname}.{idx})')))[int(idx)] | ||||
| 
 | ||||
|     def _extract_n_function_code(self, video_id, player_url): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan