1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-25 10:55:14 +00:00

Update to ytdl-commit-07af47

[YouTube] Improve fix for ae8ba2c
07af47960f
This commit is contained in:
pukkandan
2023-06-21 08:51:14 +05:30
parent 1619ab3e67
commit 42f2d40b47
3 changed files with 32 additions and 1 deletions

5
yt_dlp/casefold.py Normal file
View File

@@ -0,0 +1,5 @@
import warnings
warnings.warn(DeprecationWarning(f'{__name__} is deprecated'))
casefold = str.casefold

View File

@@ -812,9 +812,9 @@ class JSInterpreter:
\((?P<args>[^)]*)\)\s*
(?P<code>{.+})''' % {'name': re.escape(funcname)},
self.code)
code, _ = self._separate_at_paren(func_m.group('code'))
if func_m is None:
raise self.Exception(f'Could not find JS function "{funcname}"')
code, _ = self._separate_at_paren(func_m.group('code'))
return [x.strip() for x in func_m.group('args').split(',')], code
def extract_function(self, funcname):