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:
parent
c46dd10032
commit
9ce3313bbe
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue