aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-04-06 02:28:09 +0700
committerSergey M․ <dstftw@gmail.com>2017-04-06 02:36:48 +0700
commit7f04386b89ced3235ea53c6c041dbfff3cbe667b (patch)
tree8ef9eb1d2b14f7dac4450ee56507e27d80dd2ef5 /youtube_dl/extractor
parentfac39cccd47555af5e9ba2c9f5f36f8ff3b628ad (diff)
[aenetworks] Add more video URL regexes (closes #12657)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/aenetworks.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/aenetworks.py b/youtube_dl/extractor/aenetworks.py
index dd96a47ce..9a5074037 100644
--- a/youtube_dl/extractor/aenetworks.py
+++ b/youtube_dl/extractor/aenetworks.py
@@ -107,7 +107,10 @@ class AENetworksIE(AENetworksBaseIE):
}
video_id = self._html_search_meta('aetn:VideoID', webpage)
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(
r'https?://link.theplatform.com/s/([^?]+)', media_url, 'theplatform_path'), video_id)
info = self._parse_theplatform_metadata(theplatform_metadata)