diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-22 10:56:37 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-22 10:56:37 +0800 |
commit | 21cc56c6e71361ccf17cebb6b131113501815ae6 (patch) | |
tree | d7d490b56632f3f534fb80b610268c16d89dda7f /yt_dlp/utils.py | |
parent | c7a54bcfbd27dde89c6267b42da7de8ea5625be1 (diff) | |
parent | 4d4f9a029f8aebd06bcd98ca61e7629de47e0018 (diff) | |
download | hypervideo-pre-21cc56c6e71361ccf17cebb6b131113501815ae6.tar.lz hypervideo-pre-21cc56c6e71361ccf17cebb6b131113501815ae6.tar.xz hypervideo-pre-21cc56c6e71361ccf17cebb6b131113501815ae6.zip |
updated from upstream | 22/02/2022 at 10:56
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 51931f164..b3f2a0625 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -3017,6 +3017,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]))*[^'\\]*'| |