1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

[tvw] make app.js regex more resilient

This commit is contained in:
Fries 2025-02-04 10:11:10 -08:00
parent c46dd10032
commit 9ce3313bbe

View file

@ -58,7 +58,7 @@ def _get_description(self, response):
def _get_js_code(self, video_id, webpage): def _get_js_code(self, video_id, webpage):
app_js_url = self._html_search_regex( app_js_url = self._html_search_regex(
r'<script[^>]+src=[\"\'](?P<app_js>.+?)[\"\'][^>]* id=\"invintus-app-js\">[^>]*</script>', r'<script[^>]+src=[\"\'](?P<app_js>.+?)[\"\'][^>]+id=\"invintus-app-js\"',
webpage, 'app_js') webpage, 'app_js')
return self._download_webpage(app_js_url, video_id, 'Downloading app.js API key') return self._download_webpage(app_js_url, video_id, 'Downloading app.js API key')