1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-18 19:28:31 +00:00

ref issue

This commit is contained in:
c-basalt 2025-07-03 02:18:23 -04:00
parent cb245eaa92
commit 62305bbc02

View File

@ -31,7 +31,7 @@ def _extract_graphql(self, query_name):
runtime_js = self._download_webpage(self._RUNTIME_JS_URL, None, 'Downloading runtime.js')
version_hashes = self._search_json(
r'return\s*""\+e\+"\."\+\(', runtime_js, 'js resources', None, end_pattern=r'\)\[e\]\+"\.js"',
transform_source=lambda s: re.sub(r'([\da-f]+):', r'"\1":', s))
transform_source=lambda s: re.sub(r'([\da-f]+):', r'"\1":', s)) # cannot use js_to_json, due to #13621
# iterate all lazy-loaded js to find query-containing js file
main_js = self._download_webpage(self._MAIN_JS_URL, None, 'Downloading khanacademy.js')