mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[extractor/txxx] Add extractors (#5240)
Authored by: chio0hai Closes #5021
This commit is contained in:
		| @@ -3385,6 +3385,8 @@ def js_to_json(code, vars={}, *, strict=False): | ||||
|     if not strict: | ||||
|         code = re.sub(r'new Date\((".+")\)', r'\g<1>', code) | ||||
|         code = re.sub(r'new \w+\((.*?)\)', lambda m: json.dumps(m.group(0)), code) | ||||
|         code = re.sub(r'parseInt\([^\d]+(\d+)[^\d]+\)', r'\1', code) | ||||
|         code = re.sub(r'\(function\([^)]*\)\s*\{[^}]*\}\s*\)\s*\(\s*(["\'][^)]*["\'])\s*\)', r'\1', code) | ||||
| 
 | ||||
|     return re.sub(rf'''(?sx) | ||||
|         {STRING_RE}| | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 chio0hai
					chio0hai