mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 21:59:17 +00:00
[aenetworks] Add more video URL regexes (closes #12657)
This commit is contained in:
parent
fac39cccd4
commit
7f04386b89
|
@ -107,7 +107,10 @@ def _real_extract(self, url):
|
||||||
}
|
}
|
||||||
video_id = self._html_search_meta('aetn:VideoID', webpage)
|
video_id = self._html_search_meta('aetn:VideoID', webpage)
|
||||||
media_url = self._search_regex(
|
media_url = self._search_regex(
|
||||||
r"media_url\s*=\s*'([^']+)'", webpage, 'video url')
|
[r"media_url\s*=\s*'(?P<url>[^']+)'",
|
||||||
|
r'data-media-url=(?P<url>(?:https?:)?//[^\s>]+)',
|
||||||
|
r'data-media-url=(["\'])(?P<url>(?:(?!\1).)+?)\1'],
|
||||||
|
webpage, 'video url', group='url')
|
||||||
theplatform_metadata = self._download_theplatform_metadata(self._search_regex(
|
theplatform_metadata = self._download_theplatform_metadata(self._search_regex(
|
||||||
r'https?://link.theplatform.com/s/([^?]+)', media_url, 'theplatform_path'), video_id)
|
r'https?://link.theplatform.com/s/([^?]+)', media_url, 'theplatform_path'), video_id)
|
||||||
info = self._parse_theplatform_metadata(theplatform_metadata)
|
info = self._parse_theplatform_metadata(theplatform_metadata)
|
||||||
|
|
Loading…
Reference in a new issue