mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-04 19:36:18 -04:00
@@ -3143,6 +3143,8 @@ def js_to_json(code, vars={}):
|
||||
|
||||
return '"%s"' % v
|
||||
|
||||
code = re.sub(r'new Date\((".+")\)', r'\g<1>', code)
|
||||
|
||||
return re.sub(r'''(?sx)
|
||||
"(?:[^"\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^"\\]*"|
|
||||
'(?:[^'\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^'\\]*'|
|
||||
|
Reference in New Issue
Block a user