aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorBepis <36346617+bbepis@users.noreply.github.com>2022-02-19 23:00:51 +1100
committerGitHub <noreply@github.com>2022-02-19 04:00:51 -0800
commitfebff4c1194de0528c087274bc17e3a8be3296ba (patch)
treeb23a151c69ebccdee292339d6d3973d9c150b0d2 /yt_dlp/utils.py
parented66a17ef0b18159dda901f0122520c25ea95d6b (diff)
downloadhypervideo-pre-febff4c1194de0528c087274bc17e3a8be3296ba.tar.lz
hypervideo-pre-febff4c1194de0528c087274bc17e3a8be3296ba.tar.xz
hypervideo-pre-febff4c1194de0528c087274bc17e3a8be3296ba.zip
[tubitv] Fix/improve TV series extraction (#2829)
Authored by: bbepis
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index c5489d494..f5cad0e54 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -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]))*[^'\\]*'|