diff options
| author | Sergey M․ <dstftw@gmail.com> | 2016-06-29 23:01:34 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2016-06-29 23:01:34 +0700 | 
| commit | 06a96da15bfde93a2f2aa17cdaa10e1bf11dde0c (patch) | |
| tree | 6af6f95522938aa5d5a061117acb2fbecd52a242 /youtube_dl/extractor/eagleplatform.py | |
| parent | 70157c2c43068b23007a6d71e16967ba85b274d5 (diff) | |
[eagleplatform] Improve embed detection and extract in separate routine (Closes #9926)
Diffstat (limited to 'youtube_dl/extractor/eagleplatform.py')
| -rw-r--r-- | youtube_dl/extractor/eagleplatform.py | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/eagleplatform.py b/youtube_dl/extractor/eagleplatform.py index 113a4966f..12d28d3b9 100644 --- a/youtube_dl/extractor/eagleplatform.py +++ b/youtube_dl/extractor/eagleplatform.py @@ -51,6 +51,14 @@ class EaglePlatformIE(InfoExtractor):      }]      @staticmethod +    def _extract_url(webpage): +        mobj = re.search( +            r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//.+?\.media\.eagleplatform\.com/index/player\?.+?)\1', +            webpage) +        if mobj is not None: +            return mobj.group('url') + +    @staticmethod      def _handle_error(response):          status = int_or_none(response.get('status', 200))          if status != 200:  | 
