diff options
| author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-05-05 23:39:54 +0800 | 
|---|---|---|
| committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-05-05 23:39:54 +0800 | 
| commit | 07d2921c6d13ce43adb9347677e50c36268fe54f (patch) | |
| tree | d258a3a353f8cbb3211dd46dcb417bb85eadca5a | |
| parent | 22e462c97a4d6eb3e058e5e337e6913262389730 (diff) | |
[lifenews] Correctly determine iframe links (fixes #5618)
| -rw-r--r-- | youtube_dl/extractor/lifenews.py | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/youtube_dl/extractor/lifenews.py b/youtube_dl/extractor/lifenews.py index 330138692..963f16e1a 100644 --- a/youtube_dl/extractor/lifenews.py +++ b/youtube_dl/extractor/lifenews.py @@ -39,6 +39,17 @@ class LifeNewsIE(InfoExtractor):              'upload_date': '20150402',              'uploader': 'embed.life.ru',          } +    }, { +        'url': 'http://lifenews.ru/news/153461', +        'md5': '9b6ef8bc0ffa25aebc8bdb40d89ab795', +        'info_dict': { +            'id': '153461', +            'ext': 'mp4', +            'title': 'В Москве спасли потерявшегося медвежонка, который спрятался на дереве', +            'description': 'Маленький хищник не смог найти дорогу домой и обрел временное убежище на тополе недалеко от жилого массива, пока его не нашла соседская собака.', +            'upload_date': '20150505', +            'uploader': 'embed.life.ru', +        }      }]      def _real_extract(self, url): @@ -88,6 +99,8 @@ class LifeNewsIE(InfoExtractor):              return cur_info          if iframe_link: +            if iframe_link.startswith('//'): +                iframe_link = 'http:' + iframe_link              cur_info = dict(common_info)              cur_info.update({                  '_type': 'url_transparent', | 
