aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-05 00:00:04 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-05 00:00:04 +0600
commit27fe5e347350484009e79251ec7ef97484219481 (patch)
tree081307cef3c2b9e8516c7ae2ac01a2bb19c102fd /youtube_dl/extractor
parentf67dcc09f5e2f68032e379133e53b07e58c544dd (diff)
[ellentv] Make video url extraction fatal
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ellentv.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ellentv.py b/youtube_dl/extractor/ellentv.py
index fc92ff825..3a7962144 100644
--- a/youtube_dl/extractor/ellentv.py
+++ b/youtube_dl/extractor/ellentv.py
@@ -40,14 +40,15 @@ class EllenTVIE(InfoExtractor):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
- video_url = self._html_search_meta('VideoURL', webpage, 'url')
+
+ video_url = self._html_search_meta('VideoURL', webpage, 'url', fatal=True)
title = self._og_search_title(webpage, default=None) or self._search_regex(
r'pageName\s*=\s*"([^"]+)"', webpage, 'title')
description = self._html_search_meta(
'description', webpage, 'description') or self._og_search_description(webpage)
timestamp = parse_iso8601(self._search_regex(
r'<span class="publish-date"><time datetime="([^"]+)">',
- webpage, 'timestamp'))
+ webpage, 'timestamp', fatal=False))
return {
'id': video_id,